Skip to content

Instantly share code, notes, and snippets.

View stresslimit's full-sized avatar

Colin stresslimit

  • sorry most activity is private...
View GitHub Profile
@stresslimit
stresslimit / svn:externals
Created September 6, 2012 19:28
svn propedit svn:externals wp-content/plugins
ajax-thumbnail-rebuild http://plugins.svn.wordpress.org/ajax-thumbnail-rebuild/trunk/
editorial-calendar http://plugins.svn.wordpress.org/editorial-calendar/trunk/
custom-metadata http://plugins.svn.wordpress.org/custom-metadata/trunk/
#email-address-encoder http://plugins.svn.wordpress.org/email-address-encoder/trunk/
#posts-to-posts http://plugins.svn.wordpress.org/posts-to-posts/trunk/
#rich-text-tags http://plugins.svn.wordpress.org/rich-text-tags/trunk/
simple-page-ordering http://plugins.svn.wordpress.org/simple-page-ordering/trunk/
sld-custom-content-and-taxonomies http://plugins.svn.wordpress.org/sld-custom-content-and-taxonomies/trunk/
#taxonomy-terms-order http://plugins.svn.wordpress.org/taxonomy-terms-order/trunk/
#wp-mail-smtp http://plugins.svn.wordpress.org/wp-mail-smtp/trunk/
@stresslimit
stresslimit / cloudscroll.html
Last active August 29, 2015 13:57
cloud float css anim
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<style>
/* define the floating animation; just a simple position shift */
@-webkit-keyframes cloud_floating {
0% { left: -5%; }
@stresslimit
stresslimit / floating-clouds.html
Created April 10, 2014 16:28
Scrolling clouds css animation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<style>
/* define the floating animation; just a simple position shift */
@keyframes cloud_floating {
@stresslimit
stresslimit / populate-zendesk-fields.js
Last active February 28, 2024 11:06
Pre-populate Zendesk new ticket fields via query params
jQuery(function($) {
if ( !$('#new_request') ) return
var query = window.location.search.substring(1);
var vars = query.split("&");
var match, fieldID;
for (var i=0; i<vars.length; i++) {
var pair = vars[i].split("=");
match = pair[0].match(/^request_fields\[([a-z_\d]+)\]$/)
if (match) {
<?php
$access_token = 'YOUR_TOKEN';
$cloudBit_ID = 'YOUR_CLOUDBIT_ID';
init_api_request($access_token, $cloudBit_ID);
function handle_input($ch, $data) {
// remove "data:" from beginning of SSE data to leave just json
$data = preg_replace('/^data:(.*)$/mi', '$1', $data);
// decode json to get php object
<html>
<head>
<script src="http://apps.littlebitscloud.cc/api-http/littleBitsAPI.min.js"></script>
<script>
function set_auth(form) {
var v = {
access_token: form.access_token.value,
device_id: form.cloudBit_id.value
}
window.littleBitsAPI = littleBitsAPI.defaults(v)