// Define a variable
var person = "John"
// Log the value of the variable person out to the console
console.log(person)
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
diff --git a/background.js b/background.js | |
index 6584934..a660a74 100644 | |
--- a/background.js | |
+++ b/background.js | |
@@ -232,7 +232,7 @@ function addTabAsTask(contentToAdd) { | |
} | |
function addToTodoistFromMenu(ev, tab) { | |
- const url = ev.pageUrl | |
+ const url = (ev.linkUrl !== undefined) ? ev.linkUrl : ev.pageUrl |
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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width"> | |
</head> | |
<body> | |
<video preload="none" controls=""> | |
<source src="https://www.destroyallsoftware.com/screencasts/catalog/functional-core-imperative-shell/download?resolution=4k"> | |
</video> | |
<video preload="none" controls=""> |
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
diff --git a/popup.html b/popup.html | |
index 748ce1d..9599946 100644 | |
--- a/popup.html | |
+++ b/popup.html | |
@@ -30,7 +30,7 @@ | |
</div> | |
<div class="flex-container"> | |
<div class="u-quiet" id="attach-current-tab-container"> | |
- <input type="checkbox" id="attach-current-tab"> Attach <span id="attach-current-tab-url"></span> | |
+ <label><input type="checkbox" id="attach-current-tab"> Attach <span id="attach-current-tab-url"></span></label> |
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
options: | |
--clean, -c: Clean all rsync and maven state before running | |
--cp, -p <s>: Scala classpath | |
--hdfs, -h: Run on HDFS | |
--hdfs-local, -d: Run in Hadoop local mode | |
--local, -l: Run in Cascading local mode (does not use Hadoop) | |
--print, -r: Print the command YOU SHOULD enter on the remote node. Useful for screen sessions | |
--scalaversion, -s <s>: version of Scala for scalac (defaults to scalaVersion in project/Build.scala) | |
--print-cp, -i: Print the Scala classpath | |
--jar, -j <s>: Specify the jar file |
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
an not find /Users/ajorgensen/.sbt/boot/scala-2.9.3/lib/scala-library.jar appending SBT_VERSION [0.12.0] to SBT_HOME | |
./scripts/scald.rb:146: warning: already initialized constant SBT_HOME | |
./scripts/scald.rb:147: warning: already initialized constant SCALA_LIB_DIR | |
compiling ./scalding-core/src/main/scala/com/twitter/scalding/examples/WordCountJob.scala | |
scalac -classpath /var/folders/l_/_j2v6hdd63vbnkxf6ffjvcxc0000gn/T/maven/hadoop-core-1.1.2.jar:/var/folders/l_/_j2v6hdd63vbnkxf6ffjvcxc0000gn/T/maven/commons-codec-1.8.jar:/var/folders/l_/_j2v6hdd63vbnkxf6ffjvcxc0000gn/T/maven/commons-configuration-1.9.jar:/var/folders/l_/_j2v6hdd63vbnkxf6ffjvcxc0000gn/T/maven/jackson-asl-0.9.5.jar:/var/folders/l_/_j2v6hdd63vbnkxf6ffjvcxc0000gn/T/maven/jackson-mapper-asl-1.9.13.jar:/var/folders/l_/_j2v6hdd63vbnkxf6ffjvcxc0000gn/T/maven/slf4j-log4j12-1.6.6.jar:/var/folders/l_/_j2v6hdd63vbnkxf6ffjvcxc0000gn/T/maven/log4j-1.2.15.jar:/var/folders/l_/_j2v6hdd63vbnkxf6ffjvcxc0000gn/T/maven/commons-httpclient-3.1.jar:/var/folders/l_/_j |
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
(def predicate `(< 3 "?a")) | |
(def data [[1] [2] [3] [4]]) | |
(defmacro foo | |
[data predicate] | |
`(<- ["?a"] | |
(data :> "?a") | |
(~@predicate))) | |
(?- (stdout) (foo data (eval predicate))) ;doesn't work |
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
(defmacro defdeprecated [old new] | |
`(defmacro ~old | |
[sym# & body#] | |
(println ~(format "Warning, %s is deprecated; use %s." | |
old | |
(resolve new))) | |
`(~'~new ~sym# ~@body#))) |
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
(defmapfn to-json [json_keys & args] | |
"Takes keys and values and emit json strings based on those key value pairs. The size of json_keys should be the same | |
size as args. Usage: (to-json ['foo' 'bar'] ?v1 ?v2 :> ?json)" | |
(json/generate-string (zipmap json_keys args))) | |
=> fieldDeclaration must be the same size as the given values |
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
if has("autocmd") | |
autocmd BufWritePre {*.rb,*.js,*.coffee,*.scss,*.haml,*.py,*.js} :call <SID>StripTrailingWhitespaces() | |
endif | |
nnoremap <silent> <F5> :call <SID>StripTrailingWhitespaces()<CR> | |
function! <SID>StripTrailingWhitespaces() | |
" Preparation: save last search, and cursor position. | |
let _s=@/ | |
let l = line(".") |
NewerOlder