Skip to content

Instantly share code, notes, and snippets.

View mparke's full-sized avatar

Matthew Parke mparke

View GitHub Profile
python3 get-pip.py
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
@mparke
mparke / karma.conf.js
Created November 20, 2014 04:28
Example karma.conf.js
// Karma configuration
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['jasmine'],
@mparke
mparke / package.json
Created November 20, 2014 04:24
Example package.json
{
"name": "modulejs",
"version": "0.0.1",
"description": "A new module",
"license": "MIT",
"private": true,
"authors": [
"mparke"
],
"devDependencies": {
@mparke
mparke / gulpfile.js
Created November 20, 2014 04:22
Example gulpfile.js
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var bump = require('gulp-bump');
var git = require('gulp-git');
var del = require('del');
var header = require('gulp-header');
var rename = require("gulp-rename");
var runSequence = require('run-sequence');
@mparke
mparke / events_mixin.js
Created June 18, 2014 20:37
EventsMixin
(function(App, Array) {
'use strict';
var slice = Array.prototype.slice;
function Events () {
var events = {};
function on (eventName, callback, context) {
if (!events[eventName]) {
events[eventName] = [];
(function ($, Namespace) {
'use strict';
var slice = Array.prototype.slice;
function widget (widgetName, constructor) {
var namespace = 'fifty.' + widgetName;
return function (options) {
var $el = $(this),
args = slice.call(arguments),
@mparke
mparke / gist:6829520
Created October 4, 2013 17:24
inherits example
(function() {
function extend(obj, props) {
}
function inherits(Parent, Child) {
function Proxy() {
this.constructor = Child;
}
@mparke
mparke / gist:6369605
Created August 28, 2013 18:36
Chaining functions together for async work
function createLinkGetter(linkProcessFn) {
return function(url) {
asyncFetch(url, linkProcessFn);
};
}
function createLinkProcessor(fetchPageFn) {
return function(links) {
for(var i = 0; i < links.length; i++) {
fetchPageFn(links[i]);
@mparke
mparke / gist:6257618
Created August 17, 2013 16:07
Sonifizer.js Original
// //---------------------------------------------
// // ************** Sonifizer.js **************
// //---------------------------------------------
// // http://www.Sonifizer.com/Sonifizer.js
// //---------------------------------------------
// // Andrew Madden
// //---------------------------------------------
// var Sonifizer_Base_URL = "http://www.Sonifizer.com";
//---------------------------------------------
// ************** Sonifizer.js **************
//---------------------------------------------
// http://www.Sonifizer.com/Sonifizer.js
//---------------------------------------------
// Andrew Madden
//---------------------------------------------
var Sonifizer_Base_URL = "http://www.Sonifizer.com";