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 com.google.appsscript.adwords._ | |
import com.google.appsscript.base.Logger | |
import com.google.appsscript.spreadsheet._ | |
object ScalaJSExample extends js.JSApp{ | |
def main(): Unit = { | |
val adsIterator = AdWordsApp.ads() | |
.withCondition("ApprovalStatus = DISAPPROVED") | |
.get() |
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
{ | |
"metadata" : { | |
"name" : "ClasspathTest", | |
"user_save_timestamp" : "1970-01-01T01:00:00.000Z", | |
"auto_save_timestamp" : "1970-01-01T01:00:00.000Z", | |
"language_info" : { | |
"name" : "scala", | |
"file_extension" : "scala", | |
"codemirror_mode" : "text/x-scala" | |
}, |
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 breeze.linalg._ | |
import breeze.numerics._ | |
import scala.annotation.tailrec | |
/** | |
* quadratic programming code: hinge algorithm | |
* find theta to minimize t(theta) * qmat * theta - 2* theta * cvec | |
* subject to amat * theta >= 0 | |
* | |
* qmat must be positive definite, amat must be irredicible | |
* |
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
CmdUtils.makeSearchCommand({ | |
name: "pickaxe", | |
url: "http://www.google.com/search?q=site:http://whytheluckystiff.net/ruby/pickaxe/%20{QUERY}&btnG=Search&btnI=3564", | |
icon: "http://whytheluckystiff.net/favicon.ico", | |
description: "Searches 'Programming Ruby The Pragmatic Programmer's Guide' for your words.", | |
preview: function(pblock, directObject) { | |
var searchTerm = directObject.text; | |
var pTemplate = "Searches 'Programming Ruby The Pragmatic Programmer's Guide' for ${query}"; | |
var pData = {query: searchTerm}; | |
pblock.innerHTML = CmdUtils.renderTemplate(pTemplate, pData); |
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
refname="$1" | |
oldrev="$2" | |
newrev="$3" | |
# Find out revision of master | |
masterref=`git show-ref --hash --heads master` | |
# Find out common merge base of master and the checked in revision. | |
mergebase=`git merge-base $masterref $newrev` | |
if [[ $mergebase != $masterref && ( $refname == *development* || $refname == *feature* ) ]] | |
then | |
echo "Cannot push changes. Merge base is $mergebase, master is $masterref. Please type 'git pull origin master' and merge any conflicts first before$ |
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 MySwingDomain._ | |
object Gui extends ReactiveSwingApp { | |
val button = new MyButton("test") | |
def top = new MainFrame { | |
contents = new FlowPanel { | |
contents += button | |
} | |
} |
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 MySwingDomain._ | |
object Gui extends ReactiveSwingApp { | |
val button = new MyButton("test") | |
def top = new MainFrame { | |
contents = new FlowPanel { | |
contents += button | |
} | |
} |
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
{ | |
"metadata" : { | |
"name" : "Plot graph with D3", | |
"user_save_timestamp" : "2014-12-15T00:55:09.510Z", | |
"auto_save_timestamp" : "2014-12-15T00:50:41.883Z", | |
"language_info" : { | |
"name" : "scala", | |
"file_extension" : "scala", | |
"codemirror_mode" : "text/x-scala" | |
}, |
OlderNewer