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
#!/bin/bash | |
let X=1; | |
while true; do | |
ssh -p 2200 pi@fmpwizard.no-ip.org raspistill -rot 90 -w 1024 -h 768 -o $X.jpg && | |
scp -oPORT=2200 pi@fmpwizard.no-ip.org:$X.jpg . ; | |
ssh -p 2200 pi@fmpwizard.no-ip.org rm $X.jpg | |
X=$((X+1)); | |
sleep 1; | |
done |
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
diego@diego-HP-EliteBook-8460p:~/work/lift/helping/LiftQuestionAjaxCheckbox$ git diff | |
diff --git a/project/plugins.sbt b/project/plugins.sbt | |
index 3f5d4d0..1d291b1 100644 | |
--- a/project/plugins.sbt | |
+++ b/project/plugins.sbt | |
@@ -1,4 +1,5 @@ | |
-addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.9.0") | |
+addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.5.0") | |
+ | |
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
// Adafruit Motor shield library | |
// copyright Adafruit Industries LLC, 2009 | |
// this code is public domain, enjoy! | |
#include <AFMotor.h> | |
// DC motor on M1, Left wheel | |
AF_DCMotor left(1); | |
// DC motor on M2, Right wheel | |
AF_DCMotor right(2); |
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
val jsNotice = | |
"""$('#lift__noticesContainer___notice li') | |
|.addClass("alert alert-success") | |
|.append('<button type="button" class="close" data-dismiss="alert">×</button>')""".stripMargin | |
val jsWarning = | |
"""$('#lift__noticesContainer___warning li') | |
|.addClass("alert") | |
|.append('<button type="button" class="close" data-dismiss="alert">×</button>')""".stripMargin |
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
object OnDiskFileParamHolder { | |
def apply(n: String, mt: String, fn: String, inputStream: InputStream): OnDiskFileParamHolder = | |
{ | |
val file: File = File.createTempFile("lift_mime", "upload") | |
val fos = new FileOutputStream(file) | |
val ba = new Array[Byte](8192) | |
def doUpload() { | |
inputStream.read(ba) match { | |
case x if x < 0 => | |
case 0 => doUpload() |
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
const html9 = (`<html><head></head><body><div data-lift="ReplaceInnerSpan"><p>Diego</p><p class="last-name">Bauman</p></div></body></html>`) | |
func ReplaceInnerSpan(in string) string { | |
//in is the html we get from the template | |
sq, _ := selector.Selector("[data-lift]") | |
//because the html may not be a full page, we use the Partial* function | |
node, _ := h5.PartialFromString(in) | |
for _, value1 := range node { | |
//apply the css selector to get a []*html.Node of matching nodes |
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
try { destroy_F494196919266RMLQOC(); } catch (e) {} | |
jQuery('#'+"F494196919266RMLQOC").html("<div class=\"base-create-item create-item-units\">\u000a <h3>Units</h3>\u000a <div class=\"row-fluid\">\u000a <div class=\"span12 \">\u000a <div class=\"span4\">\u000a <span><strong>Qty on Hand:</strong></span>\u000a </div>\u000a <span class=\"text options\" id=\"qty\">99</span>\u000a </div>\u000a </div>\u000a \u000a <div class=\"row-fluid\">\u000a <div class=\"span12 \">\u000a <div class=\"span4\">\u000a <span><strong>Cost:</strong></span>\u000a </div>\u000a <div>\u000a <span>$</span><span class=\"text options\" id=\"cost\">0.00</span>\u000a </div>\u000a </div>\u000a </div>\u000a <div class=\"row-fluid\">\u000a <div class=\"span12 \">\u000a <div class=\"span4\">\u000a <span><strong>Reg |
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
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
086a5930db28 tutum/rabbitmq:latest /run.sh 35 seconds ago Up 33 seconds 0.0.0.0:2703->5672/tcp, 0.0.0.0:2704->15672/tcp acmweb_rabbitmq_1 | |
a304520ea1ed dockerfile/mongodb:latest /usr/bin/mongod --no 45 seconds ago Up 44 seconds 0.0.0.0:2700->27017/tcp, 0.0.0.0:2701->28017/tcp acmweb_mongo_1 | |
7c4d3b994cf0 dockerfile/mongodb:latest echo mongod 3 minutes ago Exited (0) 3 minutes ago naughty_elion | |
fb767144700b dockerfile/mongodb:latest echo mongod 18 minutes ago Exited (0) 18 minutes ago high_ardinghelli | |
a1a7d17ba447 dockerfile/mongodb:latest |
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
+++ b/src/main/scala/net/liftmodules/widgets/tree/TreeView.scala | |
@@ -22,8 +22,7 @@ import _root_.scala.xml._ | |
import _root_.net.liftweb.util.Helpers._ | |
import _root_.net.liftweb.common.{Box, Full, Empty} | |
import _root_.net.liftweb.http.S._ | |
-import _root_.net.liftweb.http.LiftRules | |
-import _root_.net.liftweb.http.{LiftResponse, JsonResponse} | |
+import net.liftweb.http.{S, LiftRules, LiftResponse, JsonResponse} | |
import _root_.net.liftweb.http.js._ | |
import _root_.net.liftweb.http.js.jquery._ |
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/src/test/scala/webapptest/snippet/UploadProgressDemo.scala b/src/test/scala/webapptest/snippet/UploadProgressDemo.scala | |
index 822718a..8e81d0b 100644 | |
--- a/src/test/scala/webapptest/snippet/UploadProgressDemo.scala | |
+++ b/src/test/scala/webapptest/snippet/UploadProgressDemo.scala | |
@@ -40,17 +40,18 @@ object UploadProgressDemo extends DispatchSnippet { | |
case "script" => UploadProgress.head _ | |
} | |
- def upload(xhtml: NodeSeq): NodeSeq = { | |
+ def upload(html: NodeSeq): NodeSeq = { |
OlderNewer