Skip to content

Instantly share code, notes, and snippets.

@weshardee
weshardee / .scss-lint.yml
Last active August 29, 2015 14:10
My SCSS lint preferences
# Docs @ https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md
linters:
BorderZero:
enabled: false # nerdery - no existing standard for 'none' or '0'
CapitalizationInSelector:
enabled: false # nerdery - capitalization in camelCase is possible
ColorKeyword:
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@BretFisher
BretFisher / checkForSettings.js
Created January 15, 2015 16:06
Meteor App Check for Ensuring You're Using --settings
// lets complain to server command line if you forgot --settings when running Meteor
Meteor.startup(function () {
if (Meteor.isServer) {
if (Object.keys(Meteor.settings).length === 0) {
console.log("You forgot to run Meteor with --settings!");
}
}
});
@chbymnky
chbymnky / FED-Challenge-#62.markdown
Last active August 29, 2015 14:17
FED Challenge #62

FED Challenge #62

Six months ago apticknor posed a challenge to spot the problems in five different implementations of the picture element. He never received any solutions. So he brought it back up with hopes that several of the FEDs had an opportunity to try picture / srcset at this point and will be able to find the problems in these samples.

A Pen by chbymnky on CodePen.

License.

@danrovito
danrovito / countrydropdown.html
Last active May 5, 2025 15:08
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
@AllThingsSmitty
AllThingsSmitty / script-loaded.js
Created May 5, 2015 13:25
Check if any given script has loaded
var myScript = document.createElement('script');
myScript.src = 'http://code.jquery.com/jquery-2.1.4.min.js';
myScript.onload = function() {
console.log('jQuery loaded.');
};
document.body.appendChild(myScript);

This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
@rublev
rublev / remove-gh-stars.js
Created April 7, 2017 22:36
remove all github stars
// open console and run cmd+v every time
var i = 0;
var el = document.querySelectorAll('[aria-label="Unstar this repository"]');
function myLoop () {
setTimeout(function () {
el[i].click()
i++;
if (i < 30) {
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 11, 2025 11:33
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@butterybread
butterybread / npm-install-shortcuts.md
Created May 25, 2017 08:08
NPM shortcut commands for installation

NPM shortcut commands

  • Installing a package & save to devDependencies npm install {package} --save-dev
    shortcut: npm i {package} -D

  • Installing a package & save to dependencies npm install {package} --save
    shortcut: npm i package -S