Skip to content

Instantly share code, notes, and snippets.

@jasoniangreen
jasoniangreen / uploadPhoto.php
Last active May 7, 2019 10:21
Upload Photo with emoji in hashtag
<?php
set_time_limit(0);
date_default_timezone_set('UTC');
require __DIR__.'/../vendor/autoload.php';
/////// CONFIG ///////
$username = '';
$password = '';
@jasoniangreen
jasoniangreen / create_subclass.js
Last active August 29, 2015 14:05
Create subclass
function createSubclass(Superclass, name, methods) {
var Subclass;
eval('Subclass = function ' + name + '(){ this.initialize.apply(this, arguments) }');
Subclass.prototype = Object.create(Superclass.prototype);
for (var key in methods) {
if (methods.hasOwnProperty(key))
Subclass.prototype[key] = methods[key];
}