Skip to content

Instantly share code, notes, and snippets.

View theaccordance's full-sized avatar
:octocat:

Joe Mainwaring theaccordance

:octocat:
View GitHub Profile
/remind #YOUR-CHANNEL-GOES-HERE @channel Time for scrum:
```
* What did you do yesterday?
* What will you do today?
* Do you have any blockers the team should be aware of?
Be articulate with your responses. You should describe in detail beyond the task itself. Example:
“Yesterday I worked on extending the Tabs view to include the new feature. Today I’ll be working on creating a new init call that returns the new feature’s state for the user” 

``` every weekday at 10:30am

Keybase proof

I hereby claim:

  • I am theaccordance on github.
  • I am theaccordance (https://keybase.io/theaccordance) on keybase.
  • I have a public key ASDDHb22iRWVNAA144GV1rF36ig_qII7OBCIkzY-njtlDgo

To claim this, I am signing this object:

# Style Guide
## Purpose
Hello World
## Documentation
For anything else, including API reference, check the [Angular documentation](//docs.angularjs.org/api).
**[Back to top](#table-of-contents)**
var source = {
"alpha": "string alpha",
"bravo": {
"charlie": "string bravo.charlie",
"delta": "string bravo.delta",
"echo": {
"foxtrot": 'string bravo.echo.foxtrot',
"gamma": 'string bravo.echo.gamma',
"hotel": "string bravo.echo.hotel"
}
@theaccordance
theaccordance / debugJSON.js
Created May 10, 2016 20:05
Code snippet to write an output to JSON. Requires 'fs' module in file.
fs.writeFile('debugTeam.json', JSON.stringify(data, null, 4), function (err) {
if (err) {
console.log('error writing debug file');
} else {
console.log('debug file written.');
}
});
@theaccordance
theaccordance / gruntfile.js
Last active April 13, 2016 16:39
A modular gruntfile, loading json files containing task configurations from plugins from the file path "grunt/configs"
module.exports = function (grunt) {
function loadConfig(pattern) {
var config = {},
fileName,
fileData;
grunt.file.expand(pattern).forEach(function(filePath) {
fileName = filePath.split('/').pop().split('.')[0];
fileData = grunt.file.readJSON(filepath);
config[fileName] = fileData[fileName];
var os = require('os');
function getLocalIp() {
var interfaces = os.networkInterfaces(),
address = '';
for (var k in interfaces) {
for (var k2 in interfaces[k]) {
var intf = interfaces[k][k2];
if (intf.family == 'IPv4' && !intf.internal) {
address = intf.address;

House of Cards flag animation

After binging on the third season of house of cards, I decided to animate the house of cards flag/logo.

A Pen by José Carneiro on CodePen.

License.

@theaccordance
theaccordance / mongodb-startup
Created May 5, 2014 16:31
Launch Mongodb at startup (Max OS X)
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
@theaccordance
theaccordance / shortcut-httpd-conf
Created November 15, 2013 19:07
Hidden shortcuts that are placed in the home directory for Apache configuration files. Makes it easier to modify configurations without having to remember all of the directory paths. Works in OS X
ln -s /etc/apache2/http.conf ~/.httpd-conf
ln -s /etc/apache2/extra/httpd-vhosts.conf ~/.httpd-vhosts-conf
ln -s /etc/hosts ~/.hosts