Skip to content

Instantly share code, notes, and snippets.

View kulicuu's full-sized avatar

J Wylie Woodcock kulicuu

View GitHub Profile
c = console.log.bind console
Imm = require 'immutable'
EventEmitter = require 'events'
class Emitter extends EventEmitter
Dispatch = new Emitter()
side__effects = require('./side__effects__.coffee').amon_tobin({ Dispatch })
reducer = require('./reducer__.coffee').default
module.exports = ({ primus }) ->
initial__state = Imm.Map
@kulicuu
kulicuu / gist-300__.coffee
Created September 30, 2016 07:55
engineering & architecture ideas prototype gist
idea__000 = "
Return of analog ,
plumbing revolution,
unhackable cars (remove from IoT) (remove connectivity )
@kulicuu
kulicuu / us
Created September 15, 2016 05:52
Dvorak layout augmented with Set Theory and Algebra symbols
partial alphanumeric_keys
xkb_symbols "dvorak" {
name[Group1]= "English (Dvorak)";
key <TLDE> { [ grave, asciitilde, dead_grave, dead_tilde ] };
key <AE01> { [ 1, exclam ] };
key <AE02> { [ 2, at ] };
key <AE03> { [ 3, numbersign, U03C0 ] };
@kulicuu
kulicuu / passing_mult__.coffee
Last active September 7, 2016 08:05
passing multiple functions to CoffeeScript function :... we use parens in CS, when necessary. this is one of those times
c = console.log.bind console
func_001 = (fn1, fn2, fn3) ->
fn1()
fn2()
fn3()
func_001(
->
c "argfunc1"
@kulicuu
kulicuu / pos_img_.coffee
Last active July 26, 2016 15:15
centering an image that is absolutely positioned with respect to containers that are fixed percentage of screen width
# say we have width given ; screen width
width = 360
image_size = .222222 * width
container_size = .33333333333 * width
#the amount to shift left
left_var = (.5 * container_size) - (.5 * image_size)
@kulicuu
kulicuu / array_flatten.coffee
Created July 1, 2016 14:19
\0__0/ FLATTEN ALL THE RAYYS !!!!! \0__0/
c = -> console.log.apply console, arguments
test_rayy = [[3], [33, 88,[3939, 393], 83333], 8938, 93838]
exports.flatten = cursive_flatten = (acc, rayy) ->
for item in rayy
if Object.prototype.toString.call(item) is '[object Array]'
acc = arguments.callee(acc, item)
else
sudo apt-get install python-glade2 python-appindicator
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
chmod +x setup.py
sudo ./setup.py install
fluxgui
@kulicuu
kulicuu / jester.coffee
Last active June 26, 2016 16:07
coffeescript in place string reverse
exports.rev = rev = (str) ->
rayy = str.split ''
idx = 0
jdx = rayy.length - 1
while idx < jdx
cursor = rayy[idx]
rayy[idx] = rayy[jdx]
rayy[jdx] = cursor
idx++
jdx--
@kulicuu
kulicuu / android_and_react-native_stuff_.md
Created June 24, 2016 11:28
android & react-native stuff

To start the emulator go to Android/Sdk/tools and run:

./android avd

To enable logging:

adb logcat | grep ReactNativeJS

Starting in the project docced elsewhere but basically:

c = -> console.log.apply console, arguments