Skip to content

Instantly share code, notes, and snippets.

@alok-mishra
alok-mishra / trakt-remove-all-from-collection.js
Last active July 20, 2024 20:04
Remove all items from Trakt collection
// Removes all items from a page of the Trakt collection
// Run script from console of user's collection page
// Must be run on each page
$(".posters .grid-item").each(function() {
actionWatch($(this).closest('.grid-item'), 'collect', true)
})
@patrickarlt
patrickarlt / build.sh
Last active March 25, 2020 04:42
ES 7 async/await demo!
babel github-es6.js -o github.js --optional runtime --experimental
@amerkay
amerkay / angular-js.sublime-completions
Last active August 29, 2015 14:04
AngularJS Snippets Code Completion $ fix
// Source project https://github.com/maxhoffmann/angular-snippets/
// With ST3, it removes $. This fixes that by double escaping $ with \\$
{
"scope": "source.js",
"completions":
[
// ========== ng ==========
// function

#AngularJS Application List Here is a list of some Angular Free Application / snippets to help you out with your projects

angular git://github.com/angular/bower-angular.git
angular-mocks git://github.com/angular/bower-angular-mocks.git
angular-resource git://github.com/angular/bower-angular-resource.git
angular-scenario git://github.com/angular/bower-angular-scenario.git
angular-cookies git://github.com/angular/bower-angular-cookies.git
angular-sanitize git://github.com/angular/bower-angular-sanitize.git

angular-bootstrap git://github.com/angular-ui/bootstrap-bower.git

@kristianmandrup
kristianmandrup / Angular-packages.js
Created November 23, 2013 09:11
Angular.js plugins by category
// Forms
"forms-angular-bower": "0.0.27",
"angular-elastic": "~2.1.0",
"angular-rangeslider": "~0.0.1",
"angular-slider": "~0.1.6",
"angular-ui-select2", "~0.0.2"
"angular-ui-slider": "latest",
"angular-chosen": "~0.1.2",
"angular-date-range-picker", "~0.1.9",
"angular-contenteditable": "0.3.5",
@marvin
marvin / ESXi_backup.pl
Last active November 3, 2022 12:38
esxi backup script - includes email notifications etc
#
#
#
use strict;
use warnings;
use MIME::Lite;
################-- VARIABLES --############################
@nblumoe
nblumoe / angularjs_resource_tokenhandler.js
Created July 5, 2012 07:34
AngularJS service to send auth token with $resource requests
.factory('TokenHandler', function() {
var tokenHandler = {};
var token = "none";
tokenHandler.set = function( newToken ) {
token = newToken;
};
tokenHandler.get = function() {
return token;