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 these to public methods block: | |
// Getters for i2c_dev and spi_dev - Modification to the original library | |
Adafruit_I2CDevice *getI2CDevice() { return i2c_dev; } | |
Adafruit_SPIDevice *getSPIDevice() { return spi_dev; } |
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://www.trtspor.com.tr/canli-yayin-izle/trt-spor-159/ | |
$(".video-single .video-source").css("width", "1280px");$("#wrapper .top-navigation,.all_wrapper .header, .bar, .content, .footer").add($(".video-source > div")[1]).remove();$("body,.all_wrapper,.video-detail").css("background","#000000"); |
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" | |
"database/sql" | |
"time" | |
_ "github.com/VoltDB/voltdb-client-go/voltdbclient" | |
) |
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 examplepool | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"sync" | |
"time" | |
_ "github.com/alexbrainman/odbc" |
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
# Put this in ~/.bash_profile | |
# https://gist.github.com/disq/42459b522836b25f30469b3acb5500bf | |
gcd() { | |
if [[ "$1" == "" || "$2" != "" ]]; then | |
echo "Usage: gcd <dir in gopath>" | |
return 1 | |
fi | |
FINDIN=${GOPATH}/src |
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 ( | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/exec" | |
"strings" |
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 ( | |
"bufio" | |
"context" | |
"io" | |
) | |
type CancelableScanner struct { | |
*bufio.Scanner | |
data chan string | |
err chan error |
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
# | |
# Generic Go project makefile defaults file | |
# | |
# Usage: | |
# | |
# Renaming this file to "Makefile" and running "make" should just work. | |
# But you can also override one or more recipes: | |
# | |
# - Include this file with "include go.mk" as the first line of your custom Makefile | |
# - Define recipes using SRCDIR, GOROOT, GCFLAGS, LDFLAGS |
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
# | |
# Generic Go project makefile | |
# | |
# Example: | |
# make PREFIX= DESTDIR=/tmp/project-name-build install | |
# | |
# PREFIX is mostly unused, it would be used to expose the installation path to installed files | |
# For now, running "make install" with PREFIX= is OK (as long as DESTDIR is set) | |
# | |
# For capistrano, it would be something like this: |
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
#!/usr/bin/awk -f | |
function init() { | |
# allow max 50 fields | |
for(i=0;i<50;i++) { | |
last_data[i][""] = ""; | |
split("", last_data[i]); # make it an array | |
} | |
} | |
function dump() { |
NewerOlder