Skip to content

Instantly share code, notes, and snippets.

View jaredwilli's full-sized avatar
🏄‍♂️

Jared Williams jaredwilli

🏄‍♂️
View GitHub Profile
@jaredwilli
jaredwilli / Google-Chrome-logos-in-CSS.markdown
Created November 6, 2013 21:14
A Pen by Jared Williams.
/**
* Reverse a string
*
* @param {String} input String to reverse
* @return {String} The reversed string
*/
var reverse = function (input) {
// ...
return output;
};
// Invoking a function and applying it have the same
// result. apply() takes two parameters: the first one is an object to bind to this inside of
// the function, the second is an array or arguments, which then becomes the array-like
// arguments object available inside the function. If the first parameter is null, then this
// points to the global object, which is exactly what happens when you call a function
// that is not a method of a specific object.
// When a function is a method of an object, there’s no null reference passed around. Here the
// object becomes the first argument to apply():

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
# Markdown Cheat Sheet
# H1 tag
## H2 tag
### H3 tag
#### H4 tag
##### H5 tag
###### H6 tag
*This text will be italic*
function _getUtcTime () {
var
d = date,
i = 0,
arr,
t;
d = d || new Date(); // default to now
arr = [
module.exports = function(grunt) {
grunt.initConfig({
markdown: {
all: {
files: [
{
expand: true,
src: ['**/*.md', '!node_modules/**/*.md'],
ext: '.html'
}

GitHub Flavored Markdown

View the source of this content.

Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:

Roses are red Violets are blue

@jaredwilli
jaredwilli / [AngularJS]-HTML5-Autocomplete.markdown
Created September 24, 2013 23:09
A Pen by Jared Williams.

[AngularJS] HTML5 Autocomplete

Through the element, we can provide a simple "native" autocomplete for modern browsers; when the the tag is not supported, a simple fallback with the tag will showcase. A Pen by Jared Williams on CodePen. License.

@jaredwilli
jaredwilli / Angular-JS-Slider.markdown
Created September 24, 2013 23:07
A Pen by Jared Williams.