I hereby claim:
- I am issunboshi on github.
- I am issunboshi (https://keybase.io/issunboshi) on keybase.
- I have a public key ASCVrMJfgYEGAKK1oD6NbeyC_EhSsVAD_uV_bKjKEnVH0Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
{ | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch" | |
], |
import {indexOf} from 'helpers/indexOf'; | |
import {addClass} from 'helpers/addClass'; | |
import {removeClass} from 'helpers/removeClass'; | |
var parallax = function() { | |
// @todo change to Class and establish these vars in constructor. Will enable Class to be generic | |
/* Globals | |
-------------------------------------------------- */ | |
var PROPERTIES = ['translateX', 'translateY', 'opacity', 'rotate', 'scale'], |
@import "compass/css3/transition"; | |
*, *:before, *:after { | |
box-sizing: border-box; | |
box-sizing: -moz-border-box; | |
box-sizing: -webkit-border-box; | |
} | |
// General | |
$label_width: 125px; |
<?php | |
@require_once('twitteroauth/twitteroauth.php'); | |
$twitteruser = "@ssetelecoms"; | |
$notweets = 3; | |
$consumerkey = "kJ1XGV8QkbR411MKrWV6Q"; | |
$consumersecret = "HgRC8zL2dzX0m8HFfr4EdOwe4fmmwWm4Anp3UaJx0"; | |
$accesstoken = "95167909-qSMJwB7cC2Qc0oiS60ruOjgp9iSolklD21F7hTaSp"; | |
$oauth_token_secret = "GoowY6AWcOtCUzyirsZQapvp8FYTnCVE21nNr7v0M"; | |
function getConnectionWithAccessToken($cons_key, $cons_secret, $oauth_token, $auth_token_secret) { | |
$connection = new TwitterOAuth($cons_key, $cons_secret, $oauth_token, $auth_token_secret); |
//Remove specific login errors to prevent hackers knowing that they got either the password or username correct. Renable if users are facing issues. | |
add_filter('login_errors',create_function('$a', "return null;")); | |
//Remove multiple jQuery script tags and import one using the specified version | |
if( !is_admin()){ | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"), false, '1.9.1'); | |
wp_enqueue_script('jquery'); | |
} |
// set environment based on server name | |
switch($_SERVER['SERVER_NAME']){ | |
case "issunboshi.test.com": | |
define('base_path', './'); | |
define('env_debug', true); //Define error message setting based on environment | |
define('environment', 'issunboshi'); //Define name of each environment | |
break; | |
case "another_user.test.com": | |
define('base_path', './'); |