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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="windowsPE"> | |
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" | |
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<SetupUILanguage> | |
<UILanguage>en-US</UILanguage> | |
</SetupUILanguage> | |
<UILanguage>en-US</UILanguage> |
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
package main | |
// To run, first install github.com/google/tiff with: | |
// go get github.com/google/tiff | |
// Then run like `go run tiff-dump.go example.tif` | |
import ( | |
"fmt" | |
"github.com/google/tiff" | |
"os" |
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
""" | |
Install dependencies with: | |
brew install zbar | |
virtualenv venv ; source venv/bin/activate | |
pip install pyzbar pillow | |
run with | |
python read-qr.py qr.png |
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
package main | |
// Run like `cat my.dif | go run tiff-hdiff.go` | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) |
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
package main | |
// To run, first install image/tiff/lzw with: | |
// go get golang.org/x/image/tiff/lzw | |
// Then run like `cat my.lzw | go run tiff-lzw.go` | |
import ( | |
"bufio" | |
"fmt" | |
"golang.org/x/image/tiff/lzw" |
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
int[] myarray = {1, 1, 2, 3, 5, 8}; | |
int myarraylen = 6; | |
for (int i = 0; i<myarraylen; i++) { | |
puts(myarray[i]); | |
} |
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
mylist = [1, 1, 2, 3, 5, 8, 13] | |
for i in range(0, len(mylist)-1): | |
print mylist[i] |
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
mylist = [1, 1, 2, 3, 5, 8, 13] | |
for item in mylist: | |
print item |
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/sh | |
. git-sh-setup # for die | |
git-diff-index -p -M --cached HEAD -- | grep '^+' | | |
egrep 'TODO|FIXME|PDA' && die Blocking commit because string TODO/FIXME/PDA detected in patch | |
: |
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
add-apt-repository ppa:wine/wine-builds | |
apt-get update | |
apt-get install --install-recommends winehq-devel | |
apt-get install build-essential dpkg-dev fakeroot autoconf automake autotools-dev mingw32 mingw64 | |
apt-get build-dep wine | |
apt-get install mingw-w64 |
NewerOlder