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 | |
function search_node { | |
NODE_ROLES=$(knife node show $1 | grep Roles | grep $2) | |
if [ "" != "$NODE_ROLES" ] | |
then | |
echo "$1" | |
fi | |
} |
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 java.io.*; | |
//Custom java md5 implementaiton, use whatever you have available, as long as you stream bytes | |
//into it. | |
import com.twmacinta.util.MD5; | |
public class FileHash | |
{ | |
/* |
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 java.io.*; | |
//Custom java md5 implementaiton, use whatever you have available, as long as you stream bytes | |
//into it. | |
import com.twmacinta.util.MD5; | |
public class FileHash | |
{ | |
/* |
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
efuquen@ubuntest ~/Code/oss/libav (master) $ gdb ./avconv | |
GNU gdb (GDB) 7.5-ubuntu | |
Copyright (C) 2012 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... |
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 | |
CURRENT_BRANCH="$(git symbolic-ref HEAD | awk -F '\/' '{ print $NF }')" | |
if [[ $CURRENT_BRANCH =~ ^.*US[0-9][0-9]*$ ]]; then | |
STORY_ID="$(echo $CURRENT_BRANCH | sed 's/^.*\(US[0-9][0-9]*\)$/\1/')" | |
cat $1 | awk '{if(NR == 1) { print "'${STORY_ID}' -",$0 } else { print $0 } }' > $1.tmp | |
mv $1.tmp $1 | |
fi |
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
> last scoverage-test:executeTests | |
java.io.InvalidClassException: scoverage.Coverage; local class incompatible: stream classdesc serialVersionUID = -7159697436876606548, local class serialVersionUID = -8676941113756807635 | |
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617) | |
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622) | |
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) | |
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) | |
at scoverage.IOUtils$.deserialize(IOUtils.scala:53) | |
at scoverage.IOUtils$.deserialize(IOUtils.scala:50) |
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
efuquen@efuquen-MacBookPro:~/Code/test/rust$ sudo apt-get install cargo | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Some packages could not be installed. This may mean that you have | |
requested an impossible situation or if you are using the unstable | |
distribution that some required packages have not yet been created | |
or been moved out of Incoming. | |
The following information may help to resolve the situation: |
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
var canvas = null; | |
var ctx = null; | |
var moves = []; | |
var sprite = { | |
x: 0, | |
y: 0, | |
width: 100, | |
height: 100, | |
speed: 1, | |
color: '#c00', |
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> | |
<title>Space Invaders</title> | |
<script src="http://dv00f9dtk4nbg.cloudfront.net/mihs/2014/public/js/engine.js"></script> | |
</head> | |
<body> | |
<canvas id="canvas"></canvas> | |
<script> | |
</script> | |
</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
Do Now | |
- open nitrous | |
- create 'space-invader' folder | |
- in this folder create 'index.html' | |
- copy the html on screen' (https://gist.github.com/efuquen/85284d6d64d3692b1734) | |
Lecture | |
- Go over what an algorithm is. | |
- Explain javascript (*real programming*) | |
- Discuss difference between js & css/html |
OlderNewer