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" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"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
/* | |
RHMAP Studio email extractor for Mailshots | |
Copyright Conor O'Neill 2016, [email protected] | |
MIT License https://opensource.org/licenses/MIT | |
You may need to create a User API key in your Profile in the Studio called X-FH-AUTH-USER | |
Then: |
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
// Temperature from AD8495 K-type Thermocoule adapter and Datetime from DS1307 RTC. Displayed on ILI9341 LCD. | |
// | |
// MIT License (MIT) | |
// Copyright (c) 2015 Conor O'Neill | |
// Portions copyright Limor Fried/Ladyada for Adafruit Industries and others | |
// Portions copyright Paul Stoffregen | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
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
// Copyright Conor O'Neill 2016. [email protected] | |
// cd /home/centos/gitwork/go/src/github.com/conoro/bandonfews-tweets/ | |
// go build github.com/conoro/bandonfews-tweets | |
// go install github.com/conoro/bandonfews-tweets | |
// sudo systemctl restart bandonfews-tweets | |
package main | |
import ( | |
"encoding/json" |
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
""" | |
Sublime Text 3 plugin to update list of packages imported | |
in a Go (golang) source file (scope: source.go) using 'goimports' | |
(http://github.com/bradfitz/goimports) | |
Author: Hamid Ghadyani | |
URL: https://github.com/spamwax/goimports-sublime-text-3 | |
""" | |
import sublime |
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 express = require('express'); | |
var bodyParser = require('body-parser'); | |
var cors = require('cors'); | |
var mysql = require('mysql'); | |
var pool = mysql.createPool({ | |
connectionLimit : 100, //important | |
host : process.env.MYSQL_HOST, | |
user : process.env.MYSQL_USERNAME, | |
password : process.env.MYSQL_PASSWORD, |
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 -ur orig/package/libs/toolchain/Makefile new/package/libs/toolchain/Makefile | |
--- orig/package/libs/toolchain/Makefile 2015-11-10 08:09:30.086903500 +0000 | |
+++ new/package/libs/toolchain/Makefile 2015-11-15 14:02:44.125873000 +0000 | |
@@ -254,6 +254,33 @@ | |
endmenu | |
endef | |
+define Package/libgo | |
+$(call Package/gcc/Default) | |
+ TITLE:=Go support library |
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
// Extra Halloween code Conor O'Neill 2015 | |
// Note there is a debounce error in here where the doorbell has to be pressed twice. | |
/*************************************************** | |
This is an example for the Adafruit VS1053 Codec Breakout | |
Designed specifically to work with the Adafruit VS1053 Codec Breakout | |
----> https://www.adafruit.com/products/1381 | |
Adafruit invests time and resources providing this open source code, |
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" | |
. "github.com/hugozhu/rpi" | |
"net" | |
"time" | |
) | |
func CheckError(err 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
/* | |
This tool takes a directory tree with directory names as <slug> and leaf files | |
as index.md and changes it to a set of <slug>.md files for use in Hugo | |
The MIT License (MIT) | |
Copyright (c) 2015 Conor O'Neill ([email protected]) | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |