The example I showed was just a little bit different. Paste this code instead:
import Html exposing (..)
import Mouse
main : Signal Html
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Clipboard example</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.5/clipboard.min.js"></script> | |
</head> | |
<body> | |
Install with: | |
<input type="text" value="elm package install evancz/elm-http 2.0.0" id="install-command" /> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Clipboard example</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.5/clipboard.min.js"></script> | |
</head> | |
<body> | |
Install with: | |
<input type="text" value="elm package install evancz/elm-http 2.0.0" id="install-command" /> |
The example I showed was just a little bit different. Paste this code instead:
import Html exposing (..)
import Mouse
main : Signal Html
var map = function (fn) { return function (arr) { return jQuery.map(arr, fn); } }; | |
var each = function (fn) { return function (arr) { jQuery.each(arr, fn); } }; | |
loadReplies: function() { | |
var _this = this, request; | |
request = jQuery.getJSON('/posts/' + this.get('id') + '/replies') | |
.then(map(Discourse.Post.create)) | |
.then(each(function (post) { post.set('topic', _this.get('topic'); })) |
# ruby 1.9.2 | |
require "csv" | |
File.open("contacts2.adr", "r") do |f| | |
contacts = [] | |
f.read.split("#CONTACT").each do |entry| | |
unless entry.empty? | |
contact = {} | |
entry.each_line do |line| |
*.png diff=diff-image | |
*.jpg diff=diff-image | |
*.jpeg diff=diff-image | |
*.gif diff=diff-image |
I hereby claim:
To claim this, I am signing this object:
Anna | |
Maria | |
Katarzyna | |
Małgorzata | |
Agnieszka | |
Krystyna | |
Barbara | |
Ewa | |
Elżbieta | |
Zofia |
test = (suite) -> | |
self = {} | |
steps = [] | |
last = null | |
run = (suite, steps) -> | |
return if steps.length == 0 | |
[step, msg, fn] = steps.shift() | |
if step == describe | |
describe.call suite, msg, -> |