radio
├── Radio.jsx
├── Radio.scss
├── RadioSpec.jsx
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 cssText = ` | |
[data-qa] { | |
outline: 1px solid #E91E63 !important; | |
} | |
[data-qa]:hover { | |
outline: 2px solid #E91E63 !important; | |
} | |
[data-qa]:hover:before { | |
display: block; | |
white-space: nowrap; |
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
"%g" % ("%0.2f" % 16.4555) |
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
#!/usr/bin/env ruby | |
# A script to create a review on crucible based on the current git branch | |
# | |
# To configure settings, create a file named .code-review in your home directory | |
# The format should be: | |
# ------------------------------------------------------------------------------ | |
# crucible: | |
# url: <crucible url> | |
# username: <username> | |
# password: <password> |
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
# Apache configuration file | |
# http://httpd.apache.org/docs/2.2/mod/quickreference.html | |
# Note: ".htaccess" files are an overhead for each request. This logic should | |
# be placed in your Apache config whenever possible. | |
# http://httpd.apache.org/docs/2.2/howto/htaccess.html | |
# Turning on the rewrite engine is necessary for the following rules and | |
# features. "+FollowSymLinks" must be enabled for this to work symbolically. |
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 sys | |
if len(sys.argv) < 2: | |
print 'Usage: python {} webfont-file.svg'.format(sys.argv[0]) | |
sys.exit() | |
with open(sys.argv[1], 'r') as r: | |
lines = r.read().split('\n') | |
glyphs = [x for x in lines if '<glyph' in x] | |
# for every glyph element in the file | |
for i in range(0, len(glyphs)): |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "alt+down", | |
"command": "editor.action.moveLinesDownAction", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+up", | |
"command": "editor.action.moveLinesUpAction", |
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
require 'rake/packagetask' | |
namespace :my_namespace do | |
desc "Make coffee" | |
task :make_coffee do | |
cups = ENV["COFFEE_CUPS"] || 2 | |
puts "Made #{cups} cups of coffee. Shakes are gone." | |
end | |
# see http://rake.rubyforge.org/classes/Rake/PackageTask.html |
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 Cycle from '@cycle/core'; | |
import {div, label, input, h1, button, p, makeDOMDriver} from '@cycle/dom'; | |
const _ = require('lodash'); | |
const {Observable} = require('rx'); | |
function f1(sources) { | |
const sinks = { | |
DOM: sources.DOM.select('.field').events('input') | |
.map(ev => ev.target.value) | |
.startWith('12') |
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
nohup /bin/bash -c 'WORDS=("please help me" "i am so alone" "i am lonely" "pssssst" "hello" "hey, listen."); while [ 1 = 1 ]; do say "${WORDS[$[ $[ RANDOM % ${#WORDS[@]} ]]]}" -v Whisper -r 1.5; sleep 3; done' & |