This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple Bash script which cleans yarn cache / node_modules dir and reinstalls | |
# Source it from .bashrc, and run from dir $ reyarn | |
function reyarn() { | |
local BEGIN='\x1B[33m[BEGIN]: '; | |
local SUCCESS='\x1B[32m[SUCCESS]: '; | |
local FAILURE='\x1B[31m[FAILURE]: '; | |
local CLEAR='\x1B[0m'; | |
printf '\n\n'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function killvpn() { | |
ps -ef | grep racoon | grep -v grep | awk '{print $2}' | xargs kill -9 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function killDs() { | |
find . -name ".DS_Store" -exec rm -rf {} \; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<title>iOS HTML5 input element Example</title> | |
<meta name="author" content="Eric Feminella" /> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* basic node program for js/css minification using yuicompressor | |
* | |
* Compress the file test.js: | |
* $ node compress.js ../js/test.js | |
* Created Minified File: ../js/test.min.js | |
* | |
* Compress the file test.css | |
* $ node compress.js ../css/test.css | |
* Created Minified File: ../css/test.min.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Copyright (c) 2012 Eric Feminella, http://code.ericfeminella.com/license/LICENSE.txt | |
*/ | |
( function( _, Backbone ) | |
{ | |
// convenience reference to the Backbone.Collection constructor | |
var _initialize = Backbone.Collection.prototype.initialize; | |
/* | |
* The Backbone.PersistableCollection provides a simply abstraction which |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Defines a Model which adapts the representation of the relationship | |
* between two variables defined as x and y, to specific named properties | |
* which represent 'x' and 'y'. | |
* | |
* For example, a data point which models Temperature may represent time | |
* on the x-axes as x, and degrees on the y-axes as y. A Model can extend | |
* DataPoint to map x and y to their corresponding named properties defined | |
* as time and degrees, respectively. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Short-hand convenience functions for Jasmine and jasmine-jquery | |
/* | |
* Shorthand convenience for: | |
* | |
* expect( $( '#some-id' ) ).toHaveClass( 'someClassName' ); | |
* expectClass( '#some-id', 'someClassName'); | |
*/ | |
var expectClass = function( selector, className ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Plain text URL to anchor tags Handlebars Helper | |
(function(){ | |
// defines markup enhancement regex | |
var protocol = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim | |
, scheme = /(^|[^\/])(www\.[\S]+(\b|$))/gim; | |
/* | |
* Registers a Helper method with handlebars which, given a string of | |
* plain text or existing markup, provides enhancements of plain text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Matches all <em> elements which are the next sibling of a <strong> element */ | |
strong + em { | |
/* declarations */ | |
} |
NewerOlder