This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div{ | |
.box-shadow(inset 0 0 0 1px black) !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = function(method, path, params, callback) { | |
params.client_id = sc.soundcloud.client_id; | |
params.oauth_token = sc.soundcloud.access_token; | |
$http({ | |
method: method, | |
url: sc.soundcloud.api.host + path, | |
params: params | |
}) | |
.success(callback); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.filter('selectedCategories', function(){ | |
return function(items, cats){ | |
if(!cats){ | |
return items; | |
} | |
var choices = cats.reduce(function(p,cat){ | |
if (cat.checked){ | |
p.push(cat.catName); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
//auth routes with ui.router, and middleware auth headers for http client; | |
var app = angular | |
.module('clientApp', [ | |
'ui.router', | |
'angular-storage', | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/reloader' | |
require 'omniauth-twitter' | |
configure do | |
enable :sessions | |
user OmniAuth::Builder do | |
provider :twitter, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET'] | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//execute my jquery script in chrome tabs; | |
//execute my content script in the chorme tabs; | |
chrome.tabs.executeScript({ file: "jquery.min.js" }, function() { | |
chrome.tabs.executeScript({ file: "scripts/content.js" }); | |
}); | |
//when a new chrome tab is created run my function; | |
chrome.tabs.onCreated.addListener(function(tabId, changeInfo, tab) { | |
refeshScript(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
/** | |
* @desc directive for ghostwriter | |
* @example <ghost-writer></ghost-writer> | |
*/ | |
angular | |
.module('starter') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MutationObserver = window.WebKitMutationObserver; | |
var observer = new MutationObserver(function(mutations, observer) { | |
console.log(mutations, observer); | |
foo() | |
}); | |
observer.observe(document, { | |
subtree: true, | |
childList: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Manually emulate ionic/cordova application | |
echo "Emulating..." | |
cd ./platforms/ios/build/emulator | |
var=$(pwd) | |
ios-sim launch "$var"/*.app | |
NewerOlder