Skip to content

Instantly share code, notes, and snippets.

@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.

@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!");
}
}
});
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@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:
@mgreensmith
mgreensmith / Slack_solarized_themes
Last active March 17, 2025 14:33
Solarized themes for Slack
Solarized
#FDF6E3,#EEE8D5,#93A1A1,#FDF6E3,#EEE8D5,#657B83,#2AA198,#DC322F
Solarized Dark
#073642,#002B36,#B58900,#FDF6E3,#CB4B16,#FDF6E3,#2AA198,#DC322F
@willpatera
willpatera / Google-Sheet-Form-Post.md
Last active November 9, 2024 15:22
Post to google spreadsheet from html form

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.

Run example

You should be able to just open index.html in your browser and test locally.

@themeteorchef
themeteorchef / client-signup.coffee
Last active November 29, 2016 12:21
Create user accounts that automatically login without using Accounts.createUser on the client.
Template.signup.events(
'submit form': (e,t) ->
# Prevent form from submitting.
e.preventDefault()
# Grab the user's details.
user =
email: t.find('[name="emailAddress"]').value
password: t.find('[name="password"]').value
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@aaronthorp
aaronthorp / README.md
Last active September 13, 2017 16:09
Ubuntu Server - Meteor.JS Basic Configuration (node/meteor/brew) @aaronthorp

Ubuntu Server - Meteor.JS Basic Configuration

  • Includes Linux Homebrew, Node, Meteor and Meteorite.

To launch, copy and paste the code below into setup.sh, run chmod 777 setup.sh and then type ./setup.sh.

Alternatively...

Just paste curl https://gist.githubusercontent.com/aaronthorp/9384266/raw/setup.sh | /bin/sh in the terminal and watch the magic happen.