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
nightService = ['alarmService', 'sleepService', (alarmService, sleepService) -> | |
(i, awake) -> | |
"#{sleepService(i)} #{alarmService()} #{awake}" | |
] |
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 | |
# | |
# Convert blogger (blogspot) posts to jekyll posts | |
# | |
# Basic Usage | |
# ----------- | |
# | |
# ./blogger_to_jekyll.rb feed_url | |
# | |
# where `feed_url` can have the following format: |
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
class MontyHall | |
DOORS = 0..2 | |
def initialize | |
@car = rand(DOORS) | |
end | |
def pick | |
@pick = rand(DOORS) | |
end |
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
# Upgrade all typescript types in a project | |
yarn outdated | grep @types | awk '{print $1}' | xargs yarn upgrade |
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
/** | |
* Simple component that gets its data (things) from another | |
* service, `thing-api-service`. | |
*/ | |
import { getThings } from './thing-api-service' | |
import * as React from 'react' | |
export const Tile = () => { | |
const [things, setThings] = React.useState([]) |
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
: aani|i ann . _ . _ _ . . . | . . . _ _ . _ . | |
2: ad|un . _ _ . . | . . _ _ . | |
2: ada|nun . _ _ . . . _ | _ . . . _ _ . | |
: adad|un un . _ _ . . . _ _ . . | . . _ _ . . . _ _ . | |
: adai|i nun . _ _ . . . _ . . | . . _ . . . _ _ . | |
: adai|in un . _ _ . . . _ . . | . . _ . . . _ _ . | |
: adapis|sip nun . _ _ . . . _ . _ _ . . . . . . | . . . . . . _ _ . _ . . . _ _ . | |
: adati|it nun . _ _ . . . _ _ . . | . . _ _ . . . _ _ . | |
: adatom|mot nun . _ _ . . . _ _ _ _ _ _ _ | _ _ _ _ _ _ _ . . . _ _ . | |
: adaunt|tad nun . _ _ . . . _ . . _ _ . _ | _ . _ _ . . _ . . . _ _ . |