Skip to content

Instantly share code, notes, and snippets.

View bwasilewski's full-sized avatar

Benjamin Wasilewski bwasilewski

View GitHub Profile
@bwasilewski
bwasilewski / pw.modal.js
Created April 2, 2013 07:20
Many jQuery modal plugins require including more than just the plugin - many contain separate stylesheets and images. This plugin leaves the styling up to the user and focuses simply on the behavior of the modal.
/*globals jQuery,Mustache*/
(function($) {
$.fn.modal = function(options) {
var els = $(this)
, that = {
/**
* initialization, set up event handlers, etc.
*/

Agreement

Between <%= customername %> And <%= companyname %>

Summary:

You <%= customername %>, located at <%= customeraddress %> (“You”) are hiring us <%= companyname %> (“We or Us”) to:

  • <%= workdescription %>
@bwasilewski
bwasilewski / Object.js
Last active December 19, 2015 17:48
Object template
(function () {
'use strict';
window.Obj = function Obj () {
// Underscores for top level variables
var _self = this;
// Init object here
function init () { }
@bwasilewski
bwasilewski / package.json
Created December 8, 2013 21:13
An example package.json file for new Grunt projects. This is a supporting file for my presentation "A Better Workflow with Grunt".
{
"name": "example-project",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-uglify": "~0.2.2"
}
}
@bwasilewski
bwasilewski / SassMeister-input-HTML.html
Created July 8, 2014 03:25
Generated by SassMeister.com.
<ul class="nav--primary">
<li class="nav__item">One</li>
<li class="nav__item">Two</li>
<li class="nav__item">Three</li>
</ul>
<ul class="nav--secondary">
<li class="nav__item">One</li>
<li class="nav__item">Two</li>
<li class="nav__item">Three</li>
@bwasilewski
bwasilewski / .bash_aliases
Last active April 6, 2020 06:41
Some helpful aliases
alias bashedit='vim ~/.bashrc'
alias bashrefresh='source ~/.bashrc'
alias home='cd ~/'
alias ll='ls -lahFG'
# get disk usage for all directories inside current directory
alias dud='du -sh ./*/'
# show disk usage for all drives
alias disks='df -h --type=ext4'