Skip to content

Instantly share code, notes, and snippets.

View mparke's full-sized avatar

Matthew Parke mparke

View GitHub Profile
(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 / 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] = [];
@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 / 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 / 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'],
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