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
Bill nye the science guy/sobbing into a hungry man frozen dinner/a murder most foul. | |
Amputees/assless chaps/a mating display. | |
Dick Cheney/getting really high/teaching a robot to love. | |
Glenn beck catching his scrotum on a curtain hook/Glenn beck convulsively vomiting as a brood of spiders hatches in his brain and erupts from his tear ducts/Muhammad (praise be unto him.) |
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 'rack' | |
your_app = Proc.new { [200, {}, ["Hello World!"]] } | |
Rack::Server.start app: your_app, Port: 9292 | |
##################################################################### | |
your_app = proc { [200, {}, ["Hello World!"]] } | |
run your_app | |
##################################################################### |
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
<html> | |
<head> | |
<title>stuff</title> | |
<style type="text/css"> | |
body { | |
font: 12px helvetica; | |
} | |
</style> | |
</head> | |
<body> |
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 'concurrent' | |
class Observer | |
attr_reader :key | |
def initialize(event, key) | |
@event = event | |
@key = key | |
@finished = false | |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.node { | |
stroke: #fff; | |
stroke-width: 1.5px; | |
} | |
.link { |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: 'input', | |
attributeBindings: ['type','min','max','step'], | |
type: 'range', | |
min: 1, | |
max: 5, | |
step: 1, | |
input(e) { |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
modal: Ember.inject.service(), | |
actions: { | |
close() { | |
this.get('modal').close(); | |
} | |
} |
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 Ember from 'ember'; | |
export default Ember.TextField.extend(Ember.ViewTargetActionSupport, { | |
input(event) { | |
this.action(event.target.value); | |
} | |
}); |
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 Ember from 'ember'; | |
/* | |
This component manages: | |
* Converting an arbitrary array of objects in options (objects with a value and label) | |
for inner select component. | |
* The filter text and the filtered list of options. | |
* The proposed option, held temporarily until the selection is committed or discarded. | |
* Converting the option back into the original value in the action up to the calling comment. |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
baz: true, | |
actions: { | |
foo() { | |
console.log(arguments); | |
} |
OlderNewer