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
Style: | |
- trim excess whitespace | |
- two-space indentation; never tabs | |
- never use underscores in CSS | |
- use camel-casing in JS | |
- never abbreviate or shorten; if something is too long, revisit the language used to communicate | |
- never chain classes in your markup (use an abstraction layer instead... sass @extend) | |
- use IDs sparingly, for important parts of your document | |
- always ask if you actually need that container (divs especially) to accomplish what you need | |
- sections, asides, articles do not replace divs |
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
# Highlight current git branch in green | |
function parse_git_branch_and_add_brackets { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/' | |
} | |
PS1="\h:\W \u\[\033[0;32m\]\$(parse_git_branch_and_add_brackets) \[\033[0m\]\$ " |
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
https://d2isyty7gbnm74.cloudfront.net/5D6MXyrl8z4SiuA-IH4j3Pa5jvM=/fit-in/160x160/filters:fill(ffffff):watermark(images.squareup.com/hae4AgZohjyT2AMnQlPg0hdnr00=/160x160/https://d1g145x70srn7h.cloudfront.net/files/3897fef37ba6c4f7acfe99d672d4a44c/original.jpeg,0,0,0):watermark(https://d3g64w74of3jgu.cloudfront.net/assets/v2/frames/profile-image-frame-71b7bc-dark-de46a7df0fd4fb7dec83d1e505d2e5f9.png,0,0,0):quality(100):format(png)/https://d3g64w74of3jgu.cloudfront.net/assets/v2/spacer-239465b1c71b79ae1c276e8ef6c73207.png%22 |
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 | |
# See Click Fix - Issues | |
# Collects Issues (1000 max) for each place_url | |
# for a given year | |
year=0 | |
last_year=0 | |
next_year=0 |
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
from django import template | |
from django.template.defaultfilters import linebreaksbr | |
from django.utils.html import escape | |
try: | |
from django.utils.safestring import mark_safe | |
except ImportError: # v0.96 and 0.97-pre-autoescaping compat | |
def mark_safe(x): return x | |
from pprint import pformat | |
def rawdump(x): |
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() { | |
$('.chat-widget--connected__new-message input[type="text"]').on('keydown keyup change', function() { | |
console.log('hey'); | |
}); | |
}) |
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
<header> | |
<h1></h1> | |
</header> |
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
<button class="button-badass">Badass Button</button> | |
<button class="button-coffee">Coffee Button</button> | |
<button class="button-decaff">Decaff Button</button> |
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
i = setInterval(function() {e = $(".up")[0]; if(e) e.onclick(); else clearInterval(i);}, 500); |
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
/* | |
Document : ${name} | |
Created on : ${date}, ${time} | |
Author : ${user} | |
Description: | |
Purpose of the stylesheet follows. | |
*/ | |
/* html5doctor.com Reset Stylesheet | |
v1.6.1 |
OlderNewer