Skip to content

Instantly share code, notes, and snippets.

View DustinHigginbotham's full-sized avatar

Dustin Higginbotham DustinHigginbotham

View GitHub Profile
@DustinHigginbotham
DustinHigginbotham / settings.json
Created April 26, 2017 20:51
Visual Studio Code Config
{
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "material-theme-icons",
"window.zoomLevel": 0,
"editor.fontSize": 14,
"editor.wordWrap": "off",
"editor.fontFamily": "Hack, Menlo, Monaco, 'Courier New', monospace",
"editor.cursorBlinking": "solid",
"editor.folding": false,
"telemetry.enableTelemetry": false,
px.init({
apiKey: '',
userId: ''
});
px.on('done', function() {
console.log('Our image is ready!');
});
px(image).resize({ width: 100, height: 100 }).save();
$app->post('/networks/userinfo', function() use ($app) {
$app = $app->request();
$post = $app->post();
$res = $app->response();
$network = $post['network'];
$user = $post['user'];
var Dropzone = function(selector, options) {
this.elm = document.querySelector(selector);
var onDragOver = function(e) {
e.preventDefault();
if (options.onDragOver) {
options.onDragOver(e);
}
@DustinHigginbotham
DustinHigginbotham / gist:6394369
Created August 30, 2013 21:17
Clearfix Sass Mixin
@mixin clear {
zoom:1;
&:before, &:after {
content: "\0020";
display: block;
height: 0;
overflow: hidden;
}
&:after {
clear: both;
/**
* Usage:
*
* $.debounce(function() { alert('heyo'); }, 1000);
* $.debounce(function() { alert('heyo'); }, 1000);
* $.debounce(function() { alert('heyo'); }, 1000);
*/
jQuery.extend({
debounceInt: null,
debounce: function(fn, timeout) {