Skip to content

Instantly share code, notes, and snippets.

View noway's full-sized avatar
👨‍💻

Ilia Sidorenko noway

👨‍💻
View GitHub Profile
@yelouafi
yelouafi / delimited-continuations.js
Last active June 4, 2024 04:56
delimited continuations using javascript generators
// We model the call stack using a linked list of Generators
// Each Generator has a _return field pointing back to its parent
function stepGen(gen, arg) {
const {done, value} = gen.next(arg)
if(done) {
if(gen._return) {
stepGen(gen._return, value)
}
@chourobin
chourobin / 0-bridging-react-native-cheatsheet.md
Last active August 8, 2024 10:02
React Native Bridging Cheatsheet

ASK A SPECIFIC QUESTION

How To Get Answers

Ask your question and then be patient. Tell us what you want to happen, what is actually happening, and include any error messages you find:

  • Provide a scenario. "I am trying to do X, I do so by calling APIs W and Y, but Z happens instead. I see the following error messages:..."
  • Focus on the goal. Ask about what you're trying to achieve (the big story) rather than the specific technical detail that you believe is holding you back.
  • Don't solicit help. Don't say, "Does anyone here know about (for example) Core Foundation". Just ask your question.
  • Do your homework. Search the web before asking in-channel.
  • Be courteous Don't just paste Stack Overflow questions in-channel.
  • Remember the topic Refer questions about third party libraries to their developers.
/*
* Webpack production build configuration
*
* This file is set up for building assets ready to be served in production.
*/
'use strict';
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');