⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
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
###! | |
* | |
* Back-Propagation Neural Networks | |
* | |
* References: | |
* http://arctrix.com/nas/python/bpnn.py | |
* | |
### | |
class BPNN |
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
defmodule Levenshtein do | |
def first_letter_check(one_letter, two_letter) do | |
case one_letter == two_letter do | |
true -> 0 | |
false -> 1 | |
end | |
end | |
def distance(string_1, string_1), do: 0 | |
def distance(string, ''), do: :string.len(string) |
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
-module(levenshtein). | |
-export([distance/2]). | |
store_result(Key, Value, Cache) -> | |
{Value, dict:store(Key, Value, Cache)}. | |
distance(String1, String2) -> | |
{List,_} = distance(String1, String2, dict:new()), | |
List. |
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
-module(levenshtein). | |
-export([distance/2]). | |
first_letter_check(OneLetter, TwoLetter) -> | |
if OneLetter =:= TwoLetter -> 0 | |
; true -> 1 | |
end. | |
distance(String1, String1) -> 0; | |
distance(String, "") -> string:len(String); |
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 'HTTP' | |
require 'UV' | |
module Sinachiku | |
@routes = { 'GET' => [], 'POST' => [] } | |
def self.route(method, path, opts, &block) | |
@routes[method] << [path, opts, block] | |
end | |
def self.do(r) | |
@routes[r.method].each {|path| |
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 sublime_plugin | |
import os | |
# ------------------------------------------- | |
# You will need to create a key mapping for this, something like: | |
# { "keys": ["alt+e"], "command": "switch_to_file" } | |
# ------------------------------------------- | |
class SwitchToFileCommand(sublime_plugin.WindowCommand): | |
def run(self): | |
self.display_list = [] | |
self.views = [] |
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 'httparty' | |
require 'twilio' | |
module Twimlet | |
module HoldMusic | |
include HTTParty | |
AWS_URL = "s3.amazonaws.com" | |
def generate_playlist(bukkit='com.twilio.music.classical', options={}) | |
@bucket = "http://#{bukkit}.#{AWS_URL}" |
After asking, I got a lot of music recommendations and Sven asked me to gist them. Here you go. :)
- The Fall of Troy
- Isis