Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
itChanged: function() {
console.log('it changed!');
nateevans /
Created September 11, 2018 13:38 — forked from gretel/
query, read, encode (using amiitool), write and lock NTAG215 (using uFR Nano hardware) for the purpose of researching Nintendo's Amiibo infrastructure Raw
# This is a companion script to
# The original post this was crafted for was
# For more info go to
#sha1sum (part of coreutils)
#xxd (part of vim)
#amiitool (
nateevans /
Created May 8, 2017 18:55 — forked from dergachev/
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

nateevans / drupalvm.config.yml
Last active October 27, 2016 19:08
Config file for Drupal VM - Ubuntu 1404, PHP 5.6
# `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
# geerlingguy/ubuntu1404, geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc.
vagrant_box: geerlingguy/ubuntu1404
vagrant_user: vagrant
vagrant_synced_folder_default_type: nfs
# If you need to run multiple instances of Drupal VM, set a unique hostname,
# machine name, and IP address for each instance.
* Convert seconds to human readable text.
* Found at:
function secs_to_h($secs)
$units = array(
nateevans / MenuBuilder.php
Created April 3, 2014 16:56
KNP Menu Bundle with Bootstrap 3 and Font Awesome 4 (see , thanks to Niels Mouthaan!)
namespace Acme\HelloBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class MenuBuilder extends ContainerAware
public function mainMenu(FactoryInterface $factory, array $options)