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
cd | |
cd Repositories/ | |
ls | |
mkdir GoCode | |
cd GoCode/ | |
git init | |
touch README | |
git add README | |
git commit -m 'first commit' | |
git remote add origin [email protected]:angeldm/GoCode.git |
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
git remote prune REMOTENAME :BRANCHNAME |
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 | |
import ( | |
"container/heap" | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
const nRequester = 100 |
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 | |
import ( | |
"fmt" | |
"time" | |
) | |
var work = 5 | |
type Request struct { | |
fn func() int |
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 | |
import ( | |
"fmt" | |
"sort" | |
) | |
type ByteSlice []byte | |
func (p ByteSlice) Len() int { return len(p) } |
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 | |
import ( | |
"encoding/xml" | |
"fmt" | |
) | |
type DIDLLite struct { | |
XMLName xml.Name | |
DC string `xml:"xmlns:dc,attr"` |
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
/* | |
http://pastebin.com/0dV84hBa | |
g++ -o test_font_features test_font_features-2.cpp -ltesseract | |
*/ | |
#include <tesseract/baseapi.h> | |
#include <leptonica/allheaders.h> | |
int main() { | |
tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI(); |
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
require 'formula' | |
class Highlight < Formula | |
homepage 'http://www.andre-simon.de/doku/highlight/en/highlight.html' | |
url 'http://www.andre-simon.de/zip/highlight-3.13.tar.bz2' | |
sha1 '8b0861a657f0e73911f514a16ff5136c37f4f724' | |
depends_on 'boost' | |
depends_on 'lua' | |
depends_on 'pkg-config' |
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 | |
# | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home | |
LAUNCHER_JAR=plugins/org.eclipse.equinox.launcher_1.3.0.v20130125-144918.jar | |
java \ | |
-showversion \ | |
-XX:MaxPermSize=256m \ | |
-Xms1024m \ | |
-Xmx1024m \ |
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" standalone='no'?><!--*-nxml-*--> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<!-- | |
This file is part of avahi. | |
avahi is free software; you can redistribute it and/or modify it | |
under the terms of the GNU Lesser General Public License as | |
published by the Free Software Foundation; either version 2 of the | |
License, or (at your option) any later version. |
OlderNewer