I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
This file contains hidden or 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 (user, context, callback) { | |
| user.app_metadata = user.app_metadata || {}; | |
| if ('stripe_customer_id' in user.app_metadata) { | |
| context.idToken['https://example.com/stripe_customer_id'] = user.app_metadata.stripe_customer_id; | |
| return callback(null, user, context); | |
| } | |
| var stripe = require('stripe')('sk_....'); | |
| var customer = { |
This file contains hidden or 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
| <?php | |
| // create srcset images for kirby | |
| function img($image, $options = array()) { | |
| // defaults | |
| $defaults = array( | |
| "alt" => $image->title()->or(''), | |
| "widths" => [100, 100, 100], | |
| "class" => "", | |
| "lazy" => false, | |
| ); |
This file contains hidden or 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
| var browserSync = require('browser-sync').create() | |
| var reload = browserSync.reload | |
| var gulp = require('gulp') | |
| var gitbook = require('gitbook') | |
| var path = require('path') | |
| var del = require('del') | |
| // path of your *.md book files | |
| var rootPath = path.join(__dirname, 'docs') |
This file contains hidden or 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
| // Typekit FOUT | |
| //------------------------------------------------ | |
| // References: | |
| // 1. http://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/ | |
| // | |
| .wf-loading { | |
| visibility: hidden; | |
| } |
This file contains hidden or 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
| @mixin background-2x($background, $file: 'png'){ | |
| $image: #{$background+"."+$file}; | |
| $image2x: #{$background+"2x."+$file}; | |
| background: image-url($image) no-repeat; | |
| @media (min--moz-device-pixel-ratio: 1.3), | |
| (-o-min-device-pixel-ratio: 2.6/2), | |
| (-webkit-min-device-pixel-ratio: 1.3), | |
| (min-device-pixel-ratio: 1.3), | |
| (min-resolution: 1.3dppx){ |
This file contains hidden or 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
| @mixin sprite-background($name, $folder, $sprite-width) { | |
| $sprites: sprite-map("#{$folder}/*.png"); | |
| $sprites-retina: sprite-map("#{$folder}@2x/*.png"); | |
| background-image: sprite-url($sprites); | |
| background-position: sprite-position($sprites, $name); | |
| background-repeat: no-repeat; | |
| display: inline-block; | |
| height: image-height(sprite-file($sprites, $name)); | |
| width: image-width(sprite-file($sprites, $name)); |

