Skip to content

Instantly share code, notes, and snippets.

View distributedlock's full-sized avatar

distributedlock

View GitHub Profile
@distributedlock
distributedlock / _media-queries.scss
Created March 22, 2019 20:33
Responsive Mixins
//
// MEDIA QUERIES
//––––––––––––––––––––––––––––––––––––––––––––––––––
// A map of breakpoints.
$breakpoints: (
xs: 576px,
sm: 768px,
md: 992px,
lg: 1200px
@distributedlock
distributedlock / merge.py
Last active November 12, 2018 04:21
PERC CSV Merges
import pandas as pd
from src.config import ROOT_DIR
df_admission = pd.read_csv(
f'{ROOT_DIR}/tmp/perc/percadmissionformfep_data_2018-09-14_1539.csv'
)
df_followup = pd.read_csv(
f'{ROOT_DIR}/tmp/perc/percfollowupfepprogr_data_2018-09-14_1538.csv'
)
To enable any of there plugins, go to: `Settings` -> `Plugins`
You'll find plugins in the first page, to get the others press `Browse repositories...` button.
- Apache config (.htaccess) support
- Bootstrap
- Color Ide
- CSS Support
- EditorConfig
- File Watchers
- Git Integration
@distributedlock
distributedlock / RemoveAllBlizzardFiles.sh
Last active August 29, 2015 14:18
RemoveAllBlizzardFiles.sh
#!/usr/bin/env bash
rm -rf /Applications/Battle.net*
rm -rf ~/Library/Application\ Support/Blizzard/
rm -rf ~/Library/Application\ Support/Battle.net/
rm -rf ~/Library/Preferences/com.blizzard*
rm -rf ~/Library/Preferences/net.battle*
rm -rf ~/Library/Preferences/com.unity3d*
@distributedlock
distributedlock / mark.py
Last active August 29, 2015 14:16
WLU: Marking script for unzipping and deleting temp files.
#!/usr/bin/env python3
__author__ = "RanadeepPolavarapu"
__email__ = "pola3120@mylaurier.ca"
__version__ = "1.0.0"
import os
import shlex
print("[INFO]: Iterating file list...")
@distributedlock
distributedlock / pace.js
Last active August 29, 2015 14:12
pace-latest-customBuildAJAX.min.js
// pace.js v0.7.1 custom build
(function() {
var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, Pace, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNative, getFromDOM, getIntercept, handlePushState, ignoreStack, init, now, options, requestAnimationFrame, result, runAnimation, scalers, shouldIgnoreURL, shouldTrack, source, sources, uniScaler, _WebSocket, _XDomainRequest, _XMLHttpRequest, _i, _intercept, _len, _pushState, _ref, _ref1, _replaceState,
__slice = [].slice,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__indexOf =
@distributedlock
distributedlock / pace-0.5.6-customBuildAJAX.min.js
Last active August 29, 2015 14:05
Pace custom build for quick AJAX requests. Modify restartOnRequestAfter value to your own liking. I set it at 30 ms as this will run on mostly all AJAX requests. NOTE: This is set to work for GET and POST from the default which is defaulted to GET only.
/*! pace 0.5.6 */
(function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W=[].slice,X={}.hasOwnProperty,Y=function(a,b){function c(){this.constructor=a}for(var d in b)X.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},Z=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};for(t={catchupTime:500,initialRate:.03,minTime:500,ghostTime:500,maxProgressPerFrame:10,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:30,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET","POST"],trackWebSockets:!0,ignoreURLs:[]}},B=function(){var a;return null!=(a="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?a:+new Date},D=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webki
@distributedlock
distributedlock / squid.conf
Last active August 29, 2015 14:05
squid.conf -- Config file for Squid 3 Proxy for HTTP ONLY | /etc/squid3/squid.conf
# Spoofs connections from Squid 3 as a legitimate real user.
acl myhost srcdomain subdomain.proxy.mydomain.com
http_access allow all
http_port 3128
via off
forwarded_for off
request_header_access Allow allow all