Skip to content

Instantly share code, notes, and snippets.

View davidyang's full-sized avatar

david yang davidyang

View GitHub Profile
@lifenautjoe
lifenautjoe / instagram-web-unfollow.js
Created March 14, 2017 23:27
Script to unfollow people in the instagram website
/**
* Instagram web unfollow script
*
* WHAT IS IT?
* A script to unfollow people in the instagram website
*
* WHY?
* I needed to clean my account so I quickly did this
*
* HOW TO USE:
task("post:compile",function(event,logger){
logger.info('Replacing generated models with raw model files...');
var root = event.dir.project,
path = require('path'),
wrench = require('wrench'),
resourcesModelsPath = path.join(root, 'Resources', 'alloy', 'models'),
appModelsPath = path.join(root, 'app', 'models');
wrench.rmdirSyncRecursive(resourcesModelsPath);
@olifante
olifante / filter_through_command.py
Created February 25, 2012 20:20 — forked from jefftriplett/filter_through_command.py
Sublime Text 2: "Filter Through Command" plugin
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## based on http://pastie.org/private/bclbdgxzbkb1gs2jfqzehg
import sublime
import sublime_plugin
import subprocess
class PromptRunExternalCommand(sublime_plugin.WindowCommand):
@BlackMac
BlackMac / ctags_autocomplete.py
Created February 14, 2012 09:48
autocomplete over project for Sublime Text 2
# CTags based autocompletion plugin for Sublime Text 2
# You can add the file to the User Package in ~/Library/Application Support/Sublime Text 2/Packages and restart Sublime Text 2.
# generate the .tags file in your project root with "ctags -R -f .tags"
import sublime, sublime_plugin, os
class AutocompleteAll(sublime_plugin.EventListener):
def on_query_completions(self, view, prefix, locations):
tags_path = view.window().folders()[0]+"/.tags"
anonymous
anonymous / gentest.rb
Created October 1, 2011 18:58
class Gene
end
class Person
@genes = []