Skip to content

Instantly share code, notes, and snippets.

@dansimco
dansimco / Gruntfile.js
Last active August 29, 2015 13:55
Modularized Gruntfile
module.exports = function(grunt) {
//Load private config if available
try {
app_config = grunt.file.readJSON('config.json');
} catch (err) {
console.log(
"\n\nNo config file found. Some tasks may require config strings such as AWS keys or DB strings" +
"Please create one based on config.sample.json\n\n"
);
@dansimco
dansimco / directive-as-a-service.js
Created February 3, 2014 08:22
Angular Directive as a Service
angular.module('MyComponent', [])
.service('MyComponent', function($log, $rootScope, $compile) {
return function(params) {
var scope;
// Pass params through to a new'd up scope.
// I'm just shoving them all in there as a property
// but you could be more discreet.
scope = $rootScope.$new();
scope.params = params;
var directive = $compile('<my-component>')(scope);
<!doctype html>
<!--[if (IE 9) & (!IEMobile)]> <html class="no-js ie-9" lang="en-au"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-au"> <!--<![endif]-->
<head>
<script>
(function() {
var html = document.getElementsByTagName('html')[0]
html.className = html.className.replace( /(?:^|\s)no-js(?!\S)/g , 'js' );
})()
</script>
@dansimco
dansimco / twgrdict.json
Created November 18, 2010 03:30
twgr dict
[{"hey":["wassup","yo","sup"]},{"hi":["wassup","yo","sup"]},{"hello":["wassup","yo","sup"]},{"you":["yu"]},{"are":["r"]},{"be":["b"]},{"I":["this nigger","I","ai"]},{"am":["iz"]},{"is":["iz"]},{"perfect":["pufect"]},{"school":["skool"]},{"see":["c"]},{"thing":["thang"]},{"however":["howeva"]},{"ever":["eva"]},{"things":["thangs"]},{"have a":["gotta"]},{"getting":["getin"]},{"for":["fo"]},{"real":["gangsta"]},{"my":["ma"]},{"your":["yur"]},{"you're":["yur"]},{"leave":["bounce"]},{"were":["gotz"]},{"they":["dey"]},{"money":["scrilla","cabbage","fat scrill","marbles"]},{"cash":["scrilla","cabbage","fat scrill","marbles"]},{"dollars":["scrilla","cabbage","fat scrill","marbles"]},{"a":["uh"]},{"and":["un","an","n"]},{"coffee":["crack","green","cheese"]},{"tea":["dope","weedz"]},{"drink":["smoke"]},{"drinking":["smokin"]},{"kids":["lil gangstas"]},{"collect":["steal"]},{"with":["wiff","wit"]},{"today":["taday"]},{"bad":["whack"]},{"poor":["whack"]},{"nasty":["whack"]},{"cheap":["whack"]},{"not good":["whack"]},{"cr
@dansimco
dansimco / gist:716107
Created November 26, 2010 00:22
button bullshit
button, .button {
.gloss;
border: 1px solid #333;
border-top: 1px solid #444;
border-bottom: 1px solid #222;
.rounded(3px);
width: 50px;
padding: 8px 0px;
float: left;
margin: 0px 5px 0px 0px;
Connection report for process: Safari (/Applications/Safari.app)
Total: 22.3kB sent, 259.2kB received
PID 337:
PID 3691:
ne.wac.edgecastcdn.net (72.21.91.19), Port 80 (http), Protocol 6 (TCP), 372 Bytes sent, 8.3kB received
www.dallasjclark.com (72.47.224.123), Port 80 (http), Protocol 6 (TCP), 19.7kB sent, 239.6kB received
track.reinvigorate.net (64.13.247.191), Port 80 (http), Protocol 6 (TCP), 0.8kB sent, 258 Bytes received
docs.google.com (66.102.11.100), Port 80 (http), Protocol 6 (TCP), 1.3kB sent, 11.1kB received
@dansimco
dansimco / Adobe Shortcuts
Created December 13, 2010 05:18
Keyboard Shortcuts for the adobe suits
#Indesign
##Panels
* Layers: F7
* Edit Type: cmd + T
* Color: F6
* Align: Shift + F7
@dansimco
dansimco / gist:767668
Created January 6, 2011 08:10
poopevent
btn.addEvent('touchend',function(event){
var touchX = event.event.changedTouches[0].pageX;
var touchY = event.event.changedTouches[0].pageY;
var spotCoords = btn.getCoordinates();
if(touchX>spotCoords.left && touchX<spotCoords.right && touchY>spotCoords.top && touchY<spotCoords.bottom){
alert('TouchUpInside!!!');
} else {
alert('Touch up outside');
}
});

#HBG

Financially distressed businesses within Australia seeking re-engineering, re-structuring and a strategy to trade out of their existing problem. Businessess seeking support of corporate strategists to grow their business, protect their assets and investigate new areas. Businesses that have grown beyond their resources and want to bring on a specialised level of accounting and business support. High net worth individuals seeking personal advisor and gatekeeper.

##Services

  • Accountancy
@dansimco
dansimco / SEHGymRules.md
Created May 15, 2012 21:05
Draft for SEH Gym rules poster

##NSE Gym

##PICK UP AFTER YOURSELF

  • Return weight plates, bars and dumbbells to their designated places when not in use.
  • Throw your paper towels and rubbish in the trash.
  • DO NOT leave dumbbells on the floor or weight plates on the bar.
  • If you move equipment, put it back where it belongs (Otherwise the porters are unable to clean the gym effectively).

##NOISE