Skip to content

Instantly share code, notes, and snippets.

View euoia's full-sized avatar

James Pickard euoia

  • https://www.greendragonbungay.co.uk
  • Bungay, Suffolk, England
View GitHub Profile
@euoia
euoia / gist:24b272aeeb7c27107b94
Last active October 13, 2016 20:07
Basic ES6 Node.js .tern config
{
"ecmaVersion": 6,
"libs": [
],
"plugins": {
"node": {}
}
}
@euoia
euoia / gist:aa6d3a58476c98f047bb
Last active December 23, 2020 22:41
Basic Node.js .gitignore for Mac OS X
##########################
# Application specfic
##########################
# config/config.js
##########################
# General
##########################
#####
@euoia
euoia / gist:53859b9d664c282978c9
Created November 13, 2015 11:24
Basic ES6 .eslintrc for Node.js
{
"rules": {
"no-console": 0,
"indent": 2,
"quotes": [
2,
"single"
],
"linebreak-style": [
2,
for (;;);{"error":null,"payload":{"dialog":"\u003cform method=\"POST\" class=\"aphront-dialog-view aphront-exception-dialog aphront-dialog-view-standalone\" data-sigil=\"jx-dialog\"\u003e\u003cinput type=\"hidden\" name=\"__csrf__\" value=\"B@etmnwjvq6c2763befeef4872\" \/\u003e\u003cinput type=\"hidden\" name=\"__form__\" value=\"1\" \/\u003e\u003cinput type=\"hidden\" name=\"__dialog__\" value=\"1\" \/\u003e\u003cdiv class=\"aphront-dialog-head\"\u003e\u003cdiv class=\"phui-header-shell \"\u003e\u003ch1 class=\"phui-header-view\"\u003e\u003cdiv class=\"phui-header-row\"\u003e\u003cdiv class=\"phui-header-col2\"\u003e\u003cspan class=\"phui-header-header\"\u003eUnhandled Exception ("AphrontSchemaQueryException")\u003c\/span\u003e\u003c\/div\u003e\u003cdiv class=\"phui-header-col3\"\u003e\u003c\/div\u003e\u003c\/div\u003e\u003c\/h1\u003e\u003c\/div\u003e\u003c\/div\u003e\u003cdiv class=\"aphront-dialog-body phabricator-remarkup grouped\"\u003e\u003cdiv class=\"aphront-unhandled-exception\"\u003e\u003
@euoia
euoia / gist:52f0426b2dfa32447b66
Created April 1, 2015 10:58
fatal error: all goroutines are asleep - deadlock!
package main
import (
"bufio"
"fmt"
"io"
)
func main() {
r, w := io.Pipe()
var Users = function() {
console.log('Users Initiated');
}
Users.prototype.find = function(username) {
console.log(username);
};
module.exports = Users;
Users.js
var Users = (function() {
Users.prototype.users = false;
function Users() {
}
Users.prototype.create = function(userData) {
};
@euoia
euoia / gist:385c899996a26ee330f4
Created July 30, 2014 22:32
swagger-ui git diff after running npm run-script build on master (c948b4)
diff --git a/dist/index.html b/dist/index.html
index 5af095a..caf4ef0 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -47,7 +47,8 @@
onFailure: function(data) {
log("Unable to Load SwaggerUI");
},
- docExpansion: "none"
+ docExpansion: "none",
[root@00-0c-29-fb-5a-03 ~]# cat /zones/zone.json
{
"brand": "joyent",
"dataset_uuid": "81223438-7874-11e3-9edf-8f1e15269924",
"nics": [{
"nic_tag": "admin",
"ip": "192.168.1.197",
"netmask": "255.255.255.0",
"gateway": "192.168.1.1"
}]
@euoia
euoia / gist:9402335
Created March 6, 2014 23:58
npm install grunt-contrib-uglify --save-dev error
greendragonbungay.co.uk|master⚡ ⇒ npm install grunt-contrib-uglify --save-dev
npm WARN package.json greendragonbungay.co.uk@0.0.0 No README.md file found!
npm http GET https://registry.npmjs.org/grunt-contrib-uglify
npm http 304 https://registry.npmjs.org/grunt-contrib-uglify
npm http GET https://registry.npmjs.org/maxmin
npm http GET https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/maxmin
npm http 304 https://registry.npmjs.org/uglify-js
npm ERR! Error: No compatible version found: maxmin@'^0.1.0'