This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TOPIC = "topic" | |
const CATEGORY = "category" | |
const typeName = levels => (levels >= 3 ? TOPIC : CATEGORY) | |
const createNode = ({ perLevel, levels, remainingLevels }) => { | |
if (remainingLevels === 0) return { type: TOPIC, children: [] } | |
return { | |
type: typeName(levels - remainingLevels), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"window.zoomLevel": -1, | |
"window.title": "${activeEditorLong}${separator}${rootName}", | |
"workbench.iconTheme": "vscode-great-icons", | |
"editor.tabSize": 2, | |
"files.trimTrailingWhitespace": true, | |
"emmet.syntaxProfiles": { | |
"javascript": "jsx" | |
}, | |
"files.associations": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function asyncMessage(msg) { | |
let deferred | |
const onMessage = function (msg) { | |
if (deferred) { | |
deferred.resolve(msg) | |
deferred = null | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run like this: | |
// cd client && webpack-dev-server --config webpack.development.config.js --hot --colors --progress --inline | |
var config = require("./webpack.base.config"); | |
var webpack = require("webpack"); | |
var path = require("path"); | |
var autoprefixer = require('autoprefixer'); | |
var precss = require('precss') | |
var autoprefixer = require('autoprefixer'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import R from 'ramda' | |
/* | |
Example | |
createAsyncActionType('LOGIN') | |
will return an object | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./scripts/build -- src/pick.js src/equals.js src/isEmpty.js src/curry.js src/omit.js src/merge.js src/append.js > dist/ramda.custom.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'isomorphic-fetch' | |
import { camelizeKeys } from 'humps' | |
import R from 'ramda' | |
import { normalize, arrayOf } from 'normalizr' | |
import Path from 'path-parser' | |
import { encode } from 'querystring' | |
import pluralize from 'pluralize' | |
import { playlistSchema } from 'schemas' | |
import { assocUid, mapValues } from 'utils/helpers' | |
import cuid from 'cuid' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/tokenvolt/Android/Sdk/tools/emulator -avd Nexus_5_API_21_x86 | |
/home/tokenvolt/Android/Sdk/tools/adb logcat | |
/home/tokenvolt/Android/Sdk/tools/adb shell | |
/home/tokenvolt/Android/Sdk/tools/adb devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM | |
(SELECT * FROM | |
(SELECT id FROM users) AS users_only_ids | |
WHERE id > 2) AS users_only_ids_filtered | |
ORDER BY id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"button": "button1", | |
"modifiers": ["alt"], | |
"press_command": "drag_select", | |
"command": "elixir_goto_definition" | |
}, | |
{ | |
"button": "button1", | |
"modifiers": ["shift"], |
NewerOlder