This file contains hidden or 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 {Stream} from 'most' | |
const fromNodeCallBack = fn => (...args) => new Stream(new CallBackSource(fn, args)) | |
class CallBackSource { | |
constructor (fn, args) { | |
this.fn = fn | |
this.args = args | |
} |
This file contains hidden or 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
/** | |
Proof-of-concept server-sent events HTTP server using Node.js and RxJS | |
Open http://localhost:8000 in a browser and view the console. | |
**/ | |
var http = require('http'), | |
https = require('https'); | |
var Rx = require('rx'); |
This file contains hidden or 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
<html> | |
<head> | |
<script src='http://code.jquery.com/jquery-1.5.1.min.js'></script> | |
</head> | |
<body> | |
<h2>Naive canvas</h2> | |
<canvas id="naive" width="400" height="50"></canvas> | |
<h2>High-def Canvas</h2> |
This file contains hidden or 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 React from 'react' | |
import { render } from 'react-dom'; | |
import { Router, Route } from 'react-router-dom'; | |
import LazyRoute from 'lazy-route'; | |
const App = () => { | |
render() { | |
return ( | |
<Router> | |
<Route |
This file contains hidden or 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
gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'gb'), ('xkb', 'ru+phonetic')]" | |
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps', 'grp:alt_shift_toggle', 'shift:both_capslock_cancel']" | |
gsettings set org.gnome.desktop.input-sources xkb-options "['caps:swapescape']" | |
gsettings set org.gnome.shell enabled-extensions "['[email protected]']" | |
gsettings set org.gnome.desktop.interface clock-show-date true | |
#gsettings set org.gnome.desktop.input-sources xkb-options "['compose:lctrl', 'ctrl:nocaps']" # Standard Keyboard | |
gsettings set org.gnome.desktop.input-sources xkb-options "['compose:caps']" # Kinesis Advantage | |
gsettings set org.gnome.desktop.interface clock-show-date true | |
gsettings set org.gnome.desktop.peripherals.keyboard delay 200 | |
gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 35 |
This file contains hidden or 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
#!/bin/sh | |
gsettings set org.gnome.Evince.Default show-sidebar false | |
gsettings set org.gnome.Empathy.conversation graphical-smileys false | |
gsettings set org.gnome.Empathy.conversation spell-checker-languages "en,sv" | |
gsettings set org.gnome.Empathy.notifications notifications-contact-signin true | |
gsettings set org.gnome.Empathy.notifications notifications-contact-signout true | |
gsettings set org.gnome.Empathy.notifications notifications-disabled-away false | |
gsettings set org.gnome.Empathy.ui show-groups false | |
gsettings set org.gnome.Empathy.ui show-offline false |
This file contains hidden or 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
#!/bin/bash | |
# | |
# Easily swap the functions of Esc and Caps keys on Ubuntu. | |
# Usage: | |
# $ swap-esc | |
initial_status=$(gsettings get org.gnome.desktop.input-sources xkb-options) | |
swapped="['caps:swapescape']" | |
capslock="['caps:capslock']" |
This file contains hidden or 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
# gnome-desktop.conf.yaml | |
- shell: | |
# Sets gnome-terminal as terminal emulator | |
- [gsettings set org.gnome.desktop.default-applications.terminal exec gnome-terminal] | |
- [gsettings set org.gnome.desktop.default-applications.terminal exec-arg ''] | |
# I think this changes Caps to Ctrl | |
- [gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:modifier']"] | |
# Keyboard shortcuts | |
- [org.gnome.settings-daemon.plugins.media-keys www '<Super>c'] | |
- [org.gnome.settings-daemon.plugins.media-keys email '<Super>m'] |
This file contains hidden or 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
#!/bin/sh | |
# Background | |
gsettings set org.gnome.desktop.background picture-options "zoom" | |
# gsettings set org.gnome.desktop.background picture-uri "file://" | |
# UI | |
gsettings set org.gnome.desktop.interface can-change-accels true | |
gsettings set org.gnome.desktop.interface cursor-blink false | |
gsettings set org.gnome.desktop.interface icon-theme "elementary-xfce" |
This file contains hidden or 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
// | |
// To install: | |
// * patch evdev.lst | |
// * patch evdev | |
// * patch evdev.xml | |
// * patch base.lst | |
// * patch base | |
// * patch base.xml | |
// done! | |
// |