Skip to content

Instantly share code, notes, and snippets.

dayone.me

  • Log in to dayone.me
  • Log in to dayone.me with apple auth
  • Forgot password?
  • Create account
  • Link Apple ID
  • Unlink Apple ID
  • Change Password
  • Change Email Address
  • Add email address (apple only accounts)
@mrmurphy
mrmurphy / config.json
Last active August 29, 2015 14:18 — forked from anonymous/config.json
Config for Winnower
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#82A6C9",
"@brand-success": "#30D8B4",
describe('A simple Angular app testing suite', function() {
it("should load a module from an app, and mock the module's dependency.", function() {
module('NameOfApp', function($provide) {
$provide.value('bar', {baz: function(){return true;}});
});
inject('foo', function(foo) {
expect(foo).not.toBe(null);
});
});
# Remember, this is wrong!
describe 'A simple Angular app testing suite', ->
it "should load a module from an app, and mock the module's dependency.", ->
module 'NameOfApp', ($provide) ->
$provide.value 'bar',
baz: -> true
inject 'foo', (foo) ->
expect(foo).not.toBe(null)
@mrmurphy
mrmurphy / twit.js
Last active January 1, 2016 23:09 — forked from 1dolinski/new.js
https://github.com/ttezel/twit
T.post('statuses/update', { status: 'hello world!' }, function(err, reply) {
// ...
})
function TWEET(username, count,){
var returnReply;
T.get('statuses/home_timeline', { count: count, screen_name: username, trim_user: true, exclude_replies: true }, function (err, reply) {
returnReply = reply;
@mrmurphy
mrmurphy / twit.js
Created January 2, 2014 03:18 — forked from 1dolinski/new.js
https://github.com/ttezel/twit
T.post('statuses/update', { status: 'hello world!' }, function(err, reply) {
// ...
})
// Question: how can I put this into a function such that the function returns reply?
// I tried:
@mrmurphy
mrmurphy / command.js
Last active December 28, 2015 02:09 — forked from JoelBesada/README.md
A Delicious option for Backtick chrome extension
javascript:(function(e,t){var n=e.document;setTimeout(function(){function a(e){if(e.data==="destroy_bookmarklet"){var r=n.getElementById(t);if(r){n.body.removeChild(r);r=null}}}var t="DELI_bookmarklet_iframe",r=n.getElementById(t);if(r){return}var i="https://delicious.com/save?source=bookmarklet&",s=n.createElement("iframe");s.id=t;s.src=i+"url="+encodeURIComponent(e.location.href)+"&title="+encodeURIComponent(n.title)+"&note="+encodeURIComponent(""+(e.getSelection?e.getSelection():n.getSelection?n.getSelection():n.selection.createRange().text))+"&v=1.1";s.style.position="fixed";s.style.top="0";s.style.left="0";s.style.height="100%25";s.style.width="100%25";s.style.zIndex="16777270";s.style.border="none";s.style.visibility="hidden";s.onload=function(){this.style.visibility="visible"};n.body.appendChild(s);var o=e.addEventListener?"addEventListener":"attachEvent";var u=o=="attachEvent"?"onmessage":"message";e[o](u,a,false)},1)})(window)
@mixin columns ($span: $cols of $cont-cols after $shift clearing $clear, $display: block ) {
$cols: nth($span, 1);
$cont-cols: nth($span, 3);
$shift: nth($span, 5);
$clear: nth($span, 7);
@include span-columns( $cols of $cont-cols, $display );
@include shift($shift);
@if $clear != 0 {
margin-right: ($clear * flex-gutter()) + flex-grid($clear);
$default_sort_order = '[
"-webkit-animation",
"-moz-animation",
"-ms-animation",
"-o-animation",
"animation",
"-webkit-animation-delay",
"-moz-animation-delay",
"-ms-animation-delay",
"-o-animation-delay",
#!/bin/bash
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at [email protected]
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then