Skip to content

Instantly share code, notes, and snippets.

View kaishin's full-sized avatar

Reda Lemeden kaishin

View GitHub Profile
@KittyGiraudel
KittyGiraudel / SassMeister-input.scss
Created March 16, 2014 09:34
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
// Map storing values when the mixin is being called
$cache: (
width : (),
height : (),
);
@KittyGiraudel
KittyGiraudel / SassMeister-input.scss
Last active August 29, 2015 14:08
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
/// Apply `$function` with `$args` to each item from `$list`.
/// @param {List} $list
/// @param {String} $function
/// @param {Arglist} $args
/// @return {List}
anonymous
anonymous / index.html
Created August 19, 2015 09:33
JS Bin // source https://jsbin.com/kohewohema
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.0.0-alpha1.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@jamztang
jamztang / UIImage+JTImageDecode.h
Created October 2, 2011 05:40
Force UIImage to decompress
//
// UIImage+JTImageDecode.h
//
// Created by james on 9/28/11.
// http://ioscodesnippet.tumblr.com
//
@interface UIImage (JTImageDecode)
+ (UIImage *)decodedImageWithImage:(UIImage *)image;
@end
@kylefiedler
kylefiedler / html.snippets
Created June 2, 2012 19:45
HTML snippets
# Some useful Unicode entities
# Non-Breaking Space
snippet nbs
&nbsp;
# ←
snippet left
&#x2190;
# →
snippet right
&#x2192;
@tjun
tjun / Rakefile
Created October 26, 2012 15:56
jekyll
# Usage: rake preview
desc "Build files and launch preview server"
task :preview do
sh "open -a 'Google\ Chrome' 'http://localhost:4000'"
sh "jekyll --server --auto"
end
# Usage: rake post["title"]
desc "Create a new post file with title"
task :post do
@plapier
plapier / gist:2044437
Created March 15, 2012 14:22
CSS/Sass Modal Dialog
<!-- HTML -->
<div class="modal-dialog-background">
<div class="modal-dialog">
<h1>Submit</h1>
<div class="inner-wrapper">
<p>Press submit to record your answers.</p>
</div>
<div class="buttons">
<button type="button" class="cancel">Cancel</button>
<button type="button" class="submit">Submit</button>
@evilmarty
evilmarty / README.md
Created October 25, 2012 07:39
Sass vendor helper mixins

If like me you find it frustrating to define the same vendor prefixes over and over again. Sure, you might create mixins that help reduce the amount of repetitiveness but when your mixins file becomes a library (or not) you see so many lines of near-identical code and wonder if there is an easier way.

Say you have this (all-too familiar) mixin:

@mixin border-radius($radius) {
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  -ms-border-radius: $radius;
 -o-border-radius: $radius;
@bentford
bentford / AutoLayoutLabel
Created June 17, 2013 20:49
Shows how to implement a multiline UILabel with Auto Layout. It will dynamically resize to fit whatever horizontal constraints you apply.
@interface AutoLayoutLabel : UILabel
@end
@implementation AutoLayoutLabel
{
CGFloat overrideWidth;
}
- (id)init
@LeaVerou
LeaVerou / dabblet.css
Created January 4, 2012 16:09
Lined paper that follows the text
/**
* Lined paper that follows the text
* Support: Chrome, FF 3.6+, Saf 5.1+, Opera 11.50+, IE10
*/
/* Just decorative */
padding: 20px;
/* The font. Try changing font-size and see how the lines