Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Parke mparke

View GitHub Profile
View gist:930f48e6ce368524c3de2d2fbd3d28e5
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 Nov 20, 2014
Example karma.conf.js
View 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 Nov 20, 2014
Example package.json
View package.json
{
"name": "modulejs",
"version": "0.0.1",
"description": "A new module",
"license": "MIT",
"private": true,
"authors": [
"mparke"
],
"devDependencies": {
@mparke
mparke / gulpfile.js
Created Nov 20, 2014
Example gulpfile.js
View 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');
View events_mixin.js
(function(App, Array) {
'use strict';
var slice = Array.prototype.slice;
function Events () {
var events = {};
function on (eventName, callback, context) {
if (!events[eventName]) {
events[eventName] = [];
View widget constructor
(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 Oct 4, 2013
inherits example
View gist:6829520
(function() {
function extend(obj, props) {
}
function inherits(Parent, Child) {
function Proxy() {
this.constructor = Child;
}
@mparke
mparke / gist:6369605
Created Aug 28, 2013
Chaining functions together for async work
View gist:6369605
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 Aug 17, 2013
Sonifizer.js Original
View gist:6257618
// //---------------------------------------------
// // ************** Sonifizer.js **************
// //---------------------------------------------
// // http://www.Sonifizer.com/Sonifizer.js
// //---------------------------------------------
// // Andrew Madden
// //---------------------------------------------
// var Sonifizer_Base_URL = "http://www.Sonifizer.com";
View Sonifizer.js
//---------------------------------------------
// ************** Sonifizer.js **************
//---------------------------------------------
// http://www.Sonifizer.com/Sonifizer.js
//---------------------------------------------
// Andrew Madden
//---------------------------------------------
var Sonifizer_Base_URL = "http://www.Sonifizer.com";
You can’t perform that action at this time.