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
{ | |
"Blocks": [ | |
{ | |
"Id": "2", | |
"Type": "tofile", | |
"Rule": { | |
"Filename": "doc.json" | |
}, | |
"Position": { | |
"X": 409.991455078125, |
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
{"Blocks":[{"Id":"1","Type":"webRequest","Rule":{"BodyPath":".","Headers":{"Content-Type":"'application/json'"},"Method":"GET","Url":"http://api.crisis.net/item?apikey=YOUR_API_KEY&text=Ebola","UrlPath":""},"Position":{"X":337,"Y":197}},{"Id":"20","Type":"unpack","Rule":{"Path":".body.data"},"Position":{"X":369,"Y":273}},{"Id":"16","Type":"histogram","Rule":{"Path":".name","Window":"1h40m0s"},"Position":{"X":493,"Y":533}},{"Id":"5","Type":"bang","Rule":null,"Position":{"X":306,"Y":120}},{"Id":"8","Type":"tolog","Rule":null,"Position":{"X":320,"Y":511}},{"Id":"23","Type":"unpack","Rule":{"Path":".tags"},"Position":{"X":452,"Y":434}},{"Id":"26","Type":"filter","Rule":{"Filter":"$exists(., 'tags')"},"Position":{"X":407,"Y":346}}],"Connections":[{"Id":"11","FromId":"5","ToId":"1","ToRoute":"in"},{"Id":"21","FromId":"1","ToId":"20","ToRoute":"in"},{"Id":"27","FromId":"20","ToId":"26","ToRoute":"in"},{"Id":"28","FromId":"26","ToId":"23","ToRoute":"in"},{"Id":"29","FromId":"23","ToId":"8","ToRoute":"in"},{"Id":"30", |
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
{ | |
"Blocks": [ | |
{ | |
"Id": "1", | |
"Type": "redis", | |
"Rule": { | |
"Arguments": [ | |
"'streams.*'" | |
], | |
"Command": "PSUBSCRIBE", |
by @jprobinson and @brnstz
- Rob Pike's Hello Gophers! includes a history of "hello world"
- Russ Cox: From C to Go how they made go
- Best Practices For Production Environments pdf, will download
- 2014-talks github repo
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Index</title> | |
<link rel="stylesheet" href="css/font-awesome.min.css"> | |
</head> | |
<body> | |
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
@ejacqui hahahaha fuck you. don't call the cops when you're in trouble you dumb cunt #rat 🐀 Jan 25, 2014 | |
@Clemenparty and 1 in my bed #YourMom Jan 25, 2014 | |
@Clemenparty Yeah. Pedicures are in douchebag. What's weird is being 22 and not partying ur face off on a Saturday #pussy Jan 25, 2014 | |
RT @TimboSlice8: First ever Stadium Club Fièsta. Free mustaches and a piñata filled with live bee's at midnight. Jan 25, 2014 | |
“@Mikey_Wagz: Fireballs at 2pm should be illegal” mandatory** Jan 25, 2014 | |
RT @kelseywilsonn: @kingmickeyp 10.5 Jan 25, 2014 | |
@ejacqui ur a beat off with no friends Jan 25, 2014 | |
@vickaloo LOL 😂 http://t.co/IQ0rQcQUbf Jan 25, 2014 | |
@vickaloo @KatlinBewley ur beatoff boyfriend slept w me. Woke up w his leg around me Jan 25, 2014 | |
@HOPondees I will do that favor right noe. Jan 25, 2014 |
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
If you have an OO background - or have read Sandy Metz’ book [link] - you’ll notice something about this conventional Rails code. Not only is it a huge mess of dependencies, it violates damn near every part of SOLID object-oriented design [link to http://en.m.wikipedia.org/wiki/SOLID_(object-oriented_design)] that we practice as a means of keeping our code nimble. | |
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
require 'sinatra' | |
require 'sanitize' | |
TO_REMOVE = ["", " ", " "] | |
get '/' do | |
<<-HTML | |
<form method="post" action="sanitize"> | |
<textarea name="dirty" style="width:100%;height:800px;"></textarea> | |
<input type="submit" value="Submit"> |