Skip to content

Instantly share code, notes, and snippets.

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

Jared Williams jaredwilli

🏄‍♂️
View GitHub Profile
# 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

Because somehow I always end up trolling the interwebs looking for a reference for these.

Symbol Code Entity Name

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

<!-- Tab links at top, always visible with one 'active' -->
<ul class="nav nav-tabs">
<li ng-repeat="tab in tabs" ng-class="{active: selectedTab == tab}" ng-click="selectedTab = tab">
<a ng-href="#{{tab.id}}">{{tab.title}}</a>
</li>
</ul>
<!-- Tab contents, only one ever visible -->
<div class="tab-content">
<div ng-repeat="tab in tabs" class="tab-pane" ng-class="selectedTab == tab && 'active' || 'hide'" id="{{tab.id}}">
/* An AngularJS directive to easily paginate any list of items */
/*
* The directive exposes a $pager (or other name set by ng-model) object to the view, with these properties
* $pager.items : array of current page's items
* $pager.index : current page index
* $pager.first : boolean, current page is first?
* $pager.last : boolean, current page is last?
* $pager.group : array of numbers representing current page group (eg [1,2,3,4,5])
* $pager.groupIndex : current group index
{
"author": "Todd Greenwood-Geer",
"categories": [
{
"name": "Geometry",
"videos": [
{
"desc": "introduction-to-angles",
"id": "2439OIVBgPg",
"title": "Introduction to angles",
/**
* AngularUI - The companion suite for AngularJS
* @version v0.3.2 - 2012-12-04
* @link http://angular-ui.github.com
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
angular.module('ui.config', []).value('ui.config', {});
angular.module('ui.filters', ['ui.config']);