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
declare module 'slate-react' { | |
import * as Slate from 'slate' | |
import * as Immutable from 'immutable' | |
import { ReactNode } from 'react' | |
type RenderMarkProps = { | |
mark: { type: string }, | |
children: ReactNode | |
} |
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
.aspectWrapper { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
} | |
.wrapper { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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 "rest-client" | |
require "orca/extensions/apt" | |
require "orca/extensions/file_sync" | |
group 'server' do | |
node 'kent-web-1', 'xxx.xxx.xxx.xxx', :test_url => 'http://mysite.com/' | |
end | |
package 'app' do | |
depends_on 'deploy-user' |
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
package main | |
import "fmt" | |
import "os" | |
import "net/url" | |
import "bufio" | |
func main() { | |
scanner := bufio.NewScanner(os.Stdin) | |
for scanner.Scan() { |
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
# name: Github | |
# description: search github | |
# keyword: github | |
bolt.run -> | |
if command.hasQuery | |
log command.query | |
url = "https://api.github.com/legacy/repos/search/#{command.query}?callback=?" | |
http.getJSON url, (data) -> | |
log data |
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
# name: Google Search | |
# description: Search Google for stuff. | |
# keyword: google | |
# homepage: http://google.com | |
bolt.run -> | |
if command.hasQuery | |
url = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q="+command.query+"&callback=?" | |
http.getJSON url, (data) -> |
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
# name: Echo Bot | |
# description: Say someting and I'll say it back | |
# keyword: echo | |
bolt.run -> | |
if command.hasQuery | |
result(title:command.query, description: "That's what you said!") |
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
// add some interactivity | |
var canvas = document.querySelector("#canvas"), | |
ctx = canvas.getContext("2d"); | |
ctx.beginPath(); | |
ctx.lineWidth = 10; |
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 "socket" | |
s = TCPSocket.new 'localhost', 1234 | |
s.puts "name: Andy" | |
s.puts "Hello World" |
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
alert('Hello from alert.js'); |
NewerOlder