Skip to content

Instantly share code, notes, and snippets.

View DevinClark's full-sized avatar

Devin Clark DevinClark

View GitHub Profile
[08:51:53] <dddev> fight that urge if you want others to help
[08:51:53] <joekarl> and that's why I'm stuck
[08:51:53] <joekarl> I want the code to be simple and lean, but that means custom install which means others can't help
[08:51:53] <joekarl> 😑
[08:51:53] <joekarl> I just want to stay away from having random tools as dependencies and it seems that angular wants to head that direction
[08:51:53] <dddev> like what?
[08:51:53] <joekarl> well I suppose that's an unfair criticism, I guess more of the fact that setting this app up I feel like I need to strip out things is annoying
[08:51:53] <joekarl> which is probably more of the yeoman generator than angular
[08:51:53] <joekarl> anyways, I'll shutup now lol
[08:51:53] <dddev> Yeah. I'm generally not a fan of generators.

Keybase proof

I hereby claim:

  • I am devinclark on github.
  • I am dddev (https://keybase.io/dddev) on keybase.
  • I have a public key whose fingerprint is 2B60 726D 6212 2AA4 7BF6 5336 0A74 109E 1B30 05CB

To claim this, I am signing this object:

angular.element($0).scope().someFunction();
@DevinClark
DevinClark / 0_reuse_code.js
Created June 1, 2014 16:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

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

Instructions

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

module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
watch: {
sass: {
files: ['scss/*.scss'],
tasks: ['compass']
},
Expected Result:
----------------
One
Two
Three
Four
Six
@DevinClark
DevinClark / dabblet.css
Created February 3, 2012 22:01
Loading dot dot dot
/*
Loading dot dot dot
*/
body {
padding: 100px;
font-size: 62.5%;
width: 400px;
}
@DevinClark
DevinClark / JavaCandR.sublime-build
Created January 18, 2012 16:18
This is a build script for Sublime Text 2 that will compile and run the open java file by simply pressing cmd + B. I am very new at Java so feel free to point out problems with this script. You can just drop this file in the User Packges folder and restar
{
"cmd": ["javac", "$file_name"],
"cmd": ["java", "$file_base_name"],
"working_dir": "${project_path:${folder}}",
"selector": "source.java"
}