Skip to content

Instantly share code, notes, and snippets.

Edward Bramanti jadengore

Block or report user

Report or block jadengore

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View uncle_bob_scribe_oath.md

Uncle Bob - Scribe's Oath

  1. I will not produce harmful code.
    • I will not intentionally write code with bugs.
    • This means: Do your best.
  2. I will not produce code that's not my best.
  3. I will provide with each release a quick, testable & repeatable proof that the code works.
  4. I will not avoid release that will impede progress.
    • Short term rapid releases
  5. I will fearlessly and relentlessly improve the quality of code.
    • I will never make the code worse.
@jadengore
jadengore / cloudSettings
Last active Jan 6, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-01-06T00:03:34.683Z","extensionVersion":"v3.2.4"}
View Custom Shell.c
#include <sys/types.h>
#include <sys/wait.h> // needed to remove warning.
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#define MAX_COMMAND_LENGTH 256
#define MAX_ARGS_LENGTH 256
#define DELIMITER "\x20\n"
#define WAIT_CHARACTER "&"
View get-latest-node-version.sh
nvm ls-remote | tail -1 | sed -r 's/.*v(\S+).*/\1/'
View delete_all_branches_except.fish
git branch -D (git branch | grep -E -v 'develop|master' | tr -ds '\n' ' ' | sed 's/^[ \t]*//')
View bookshelf-transaction-coroutine.js
var Promise = require('bluebird');
Bookshelf.transaction(Promise.coroutine(function*(t) {
const library = yield Library.forge({name: 'Old Books'}).save(null, {transacting: t});
return yield Promise.map(
[
{ title: 'Canterbury Tales' },
{ title: 'Moby Dick' },
{ title: 'Hamlet' }
],
View apps.md
  • Bartender 2
  • Brave
  • Caret
  • Gitify
  • Gitter
  • Hacker Menu
  • Lighting
  • Paw
  • Screenhero
  • Spotify Bluetooth Headset Listener
View promise-series-broken-implementation.js
const Promise = require('bluebird');
Promise.series = (promiseArr) => Promise.each(promiseArr, (result) => result);
View knex-migration-promise-example.js
const Promise = require('bluebird');
exports.up = function(knex) {
return Promise.all([
knex.schema.renameTable('tomatoes', 'potatoes'),
knex.schema.table('potatoes', (table) => table.string('name'))
]);
};
View promise-series-migration-example.js
const Promise = require('bluebird');
Promise.series = (promiseArr) => Promise.each(promiseArr, (result) => result);
exports.up = function(knex) {
return Promise.series([
knex.schema.renameTable('tomatoes', 'potatoes'),
knex.schema.table('potatoes', (table) => table.string('name'))
]);
};
You can’t perform that action at this time.