I hereby claim:
- I am jackreichert on github.
- I am jrbv (https://keybase.io/jrbv) on keybase.
- I have a public key ASBnI2KlsGXVi_SlY1nrsj11Gcywpy2u9PuOd3UiVDVcWAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import React, {Component} from 'react'; | |
import {connect} from 'react-redux'; | |
import {Map, Marker, GoogleApiWrapper} from 'google-maps-react'; | |
class EventMap extends Component { | |
constructor() { | |
super(); | |
this.styles = [ | |
{ | |
featureType: "all", |
config.trigger.before :halt do | |
info "Dumping the database before shutting down..." | |
run_remote "bash /vagrant/assets/exportdb.sh" | |
run_remote "bash /vagrant/assets/gz-wpcontent.sh" | |
end |
check = function () { | |
if (twitter_ids.length >= 1) { | |
// was timing out at the 100 max you can play with this, will differ per server | |
var batch = twitter_ids.splice(0, 15); | |
wp_jsonp("import_tweets", "import_tweets", {variable: batch}, import_tweets); | |
// 150 calls per 15 minues. 900sec/150 + a bit for safety. | |
setTimeout(check, timeout); | |
} else { | |
if (error_ids.length > 0) { | |
$('#csv_file_upload').prepend("<p>" + error_ids.length + " tweets not imported. You may have hit a limit, you can try again in 15 minutes to get the rest.</p>"); |
import UIKit | |
import Security | |
class Keychain { | |
class func save(key: String, data: NSData) -> Bool { | |
let query = [ | |
kSecClass as String : kSecClassGenericPassword as String, | |
kSecAttrAccount as String : key, | |
kSecValueData as String : data ] |
<?php | |
/** | |
* Plugin Name: another plugin | |
* Plugin URI: http://www.jackreichert.com/2015/07/02/how-to-jsonp-ajax-to-ssl-in-wordpress-an-easier-way/ | |
* Description: An example of how you might use wp_jsonp. | |
* Version: 0.1 | |
* Author: jackreichert | |
* Author URI: http://www.jackreichert.com/ | |
* License: GPL3 |
if (typeof wp_jsonp === 'undefined') | |
var wp_jsonp = function (event, method, params, callbackFunc) { | |
// data needed to send jsonp | |
var data = { | |
action: event, // wp ajax action | |
ajaxSSLNonce: wp_jsonp_vars.wpAJAXNonce, // nonce | |
method: method, // server has switch/case for processing | |
params: params // data to be processed | |
}; |
/* Generated by: FontSquirrel */ | |
@font-face { | |
font-family: 'corbert-regular'; | |
src: url('corbert-regular-webfont-webfont.eot'); | |
src: url('corbert-regular-webfont-webfont.eot?#iefix') format('embedded-opentype'), | |
url('corbert-regular-webfont-webfont.woff2') format('woff2'), | |
url('corbert-regular-webfont-webfont.woff') format('woff'), | |
url('corbert-regular-webfont-webfont.ttf') format('truetype'), | |
url('corbert-regular-webfont-webfont.svg#webfontregular') format('svg'); | |
font-weight: normal; |
<?php // add the following into your theme's functions.php | |
function theme_fonts() { | |
// typekit | |
wp_enqueue_script( 'theme_typekit', '//use.typekit.net/xxxxxxx.js'); | |
// fonts.com | |
wp_enqueue_script( 'theme_fontsdotcom', '//fast.fonts.net/jsapi/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.js'); | |
// google fonts - Josefin (a favorite) |
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; | |
killall Finder /System/Library/CoreServices/Finder.app' | |
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; | |
killall Finder /System/Library/CoreServices/Finder.app' |