Auto-height textarea using as minimum JS as possible.
A Pen by Yair Even Or on CodePen.
//If you have a Bridging-Header: | |
#import <FBSDKCoreKit/FBSDKCoreKit.h> | |
#import <FBSDKLoginKit/FBSDKLoginKit.h> | |
//In your AppDelegate: | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [String: AnyObject]?) -> Bool { | |
//App launch code | |
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions) | |
//Optionally add to ensure your credentials are valid: |
// Include gulp | |
var gulp = require('gulp'); | |
var plumber = require('gulp-plumber'); | |
// Include Our Plugins | |
var sass = require('gulp-sass'), | |
minifyCSS = require('gulp-minify-css'), | |
autoprefixer = require('gulp-autoprefixer'), | |
gutil = require('gulp-util'); |
// Block Grid | |
// Technique adapted from Foundation 5 for Bootstrap 3. | |
// https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss | |
// Original LESS Version by Christopher Mitchell (https://gist.github.com/ChrisTM) | |
// Converted to SCSS by Rasmus Jürs (https://github.com/Jursdotme) | |
[class*="block-grid-"] { | |
display: block; | |
margin: -($grid-gutter-width/2); | |
padding: 0; |
find . | grep .git | xargs rm -rf |
Auto-height textarea using as minimum JS as possible.
A Pen by Yair Even Or on CodePen.
helpers do | |
def retina_image_tag(default_name, options={}) | |
retina_name = default_name.gsub(%r{\.\w+$}, '@2x\0') | |
image_tag(default_name, options.merge('data-interchange' => "[#{asset_path(:images, retina_name)}, (retina)]")) | |
end | |
end |
@charset "UTF-8"; | |
@import | |
"foundation-sites/scss/util/util", | |
"settings", | |
"foundation-sites/scss/foundation"; | |
@include foundation-global-styles; | |
@include foundation-grid; | |
@include foundation-typography; |
sass-convert -R ./ -F sass -T scss && rm *.sass |
# this directive processor enhances sprockets with the ability to load bower | |
# and npm packages | |
# | |
# usage is simple | |
# | |
# //= browserify 'my_library' | |
# window.MyLibrary | |
# browserify.modules['my_library'] | |
# | |
# if you would like to to control the name of what's loaded do this |