- MongoDB
- ElasticSearch
- Redis
- ExpressJs
- Mongoose
var person = { | |
name: "James Smith", | |
hello: function(thing) { | |
console.log(this.name + " says hello " + thing); | |
} | |
} | |
var helloFunc = person.hello.bind(person); | |
helloFunc("world"); // output: "James Smith says hello world" |
var person = { | |
name: "James Smith", | |
hello: function(thing) { | |
console.log(this.name + " says hello " + thing); | |
} | |
} | |
person.hello.call(person, "world"); // output: "James Smith says hello world" |
/* | |
* Helper to get a querystring value. | |
*/ | |
function getParameterByName( name ){ | |
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | |
var regexS = "[\\?&]"+name+"=([^&#]*)"; | |
var regex = new RegExp( regexS ); | |
var results = regex.exec( window.location.href ); | |
if( results == null ) | |
return ""; |
/* | |
* Helper to get a querystring value. | |
*/ | |
function getParameterByName( name ){ | |
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | |
var regexS = "[\\?&]"+name+"=([^&#]*)"; | |
var regex = new RegExp( regexS ); | |
var results = regex.exec( window.location.href ); | |
if( results == null ) | |
return ""; |
# -*- coding: utf-8 -*- | |
""" | |
This script is forked originally from Dave Jeffery. The original implementation | |
was very slow and deleted around 2 tweets per second. Making it multithreaded I | |
am able to delete 30-50 tweets per second. | |
@author: vik-y | |
---------------------------------------------------------------------------- | |
This script will delete all of the tweets in the specified account. |
#! /usr/bin/env python | |
# how to unfollow everyone who isn't following you | |
# By Jamieson Becker (Public Domain/no copyright, do what you will) | |
# Easy instructions, even if you don't know Python | |
# | |
# 1. Install pip (apt-get install python-pip) and then | |
# pip install tweepy, which is the python twitter client | |
# |
function (user, context, callback) { | |
var userApiUrl = auth0.baseUrl + '/users'; | |
function isSocial() { | |
return user.identities[0].isSocial; | |
} | |
function deleteSocialUser(user) { | |
if (isSocial()){ |