Some apps to install before moving forward:
Direct links included, if you trust me ;)
- Hookshot
- Adblock
- find the column and line number related to where the cursor is | |
- find the token underneath the cursor using some sort language parsing | |
- leverage the syntax highlighting to determine tokens (individual HTML Elements) | |
- this would help with the onTokenEnter and onTokenLeave priciples | |
- make API call to get the hover contents back from the api | |
- so long as the cursor stays over the current token, show a loading indicator | |
- it can't jusst on cursor move, onTokenEnter | |
- onTokenLeave stop the request/ignore the request | |
- once you get the content back, replace the loading indicator with the content | |
- you could cache the content in case the user hovers back over the same token in a given session |
I hereby claim:
To claim this, I am signing this object:
require "benchmark" | |
n = 10000 | |
arr = (1..1000).to_a | |
zip = arr.zip arr | |
hash = Hash[zip] | |
Benchmark.bm do |x| | |
x.report("%-30s" %["sampling array"]) { n.times do | |
arr.sample |
wt cron schedule --name cat-facts \ | |
--param to=<ENEMY_PHONE_NUMBER> \ | |
--secret SID=<TWILIO_SID> \ | |
--secret TOKEN=<TWILIO_TOKEN> \ | |
--secret NUMBER=<TWILIO_NUMBER> \ | |
"<CRON SCHEDULE>" \ | |
<PATH_TO_FILE> |
#! /usr/bin/env boot | |
(set-env! :dependencies '[[compojure "1.5.0"] | |
[http-kit "2.1.8"]]) | |
;; You can pass as many packages as you want to require, | |
;; so no need to invoke it twice! | |
(require '[compojure.core :refer [defroutes GET POST]] | |
'[org.httpkit.server :refer [run-server]]) | |
(defn greet [greetee] |
#! /usr/bin/env boot | |
(set-env! :dependencies '[[compojure "1.5.0"] | |
[http-kit "2.1.8"]]) | |
(require '[compojure.core :refer [defroutes GET]]) | |
(require '[org.httpkit.server :refer [run-server]]) | |
(defroutes routes | |
(GET "/" [] "Hello World!")) |
<snippet> | |
<content><![CDATA[ | |
<form action="/${1:url}" method="post"> | |
<input type="${2:text}" name="$3"> | |
<input type="${4:password}" name="$5"> | |
${6:<input type="submit" value="Submit">} | |
</form>$0 | |
]]></content> | |
<tabTrigger>frmzplz</tabTrigger> | |
<scope>text.html - ruby</scope> |
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
var Zoo = { | |
animals: {}, | |
init: function(animalInput) { | |
for(index in animals) { | |
this.animals[animalInput[index].name] = animalInput[index].legs; | |
}; |
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
</head> |