Skip to content

Instantly share code, notes, and snippets.

cahnory

  • Marseille, France
Block or report user

Report or block cahnory

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cahnory
cahnory / SassMeister-input.scss
Created Mar 7, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
// https://docs.google.com/spreadsheet/ccc?key=0AgFzwMiAdIOfdDdkMVhPazVjMnI4eDdtM19VUzhOSVE&usp=sharing
@function nth-side($value, $n) {
@while length($value) < $n {
$value: append($value, nth($value, floor((length($value) + 1)/2)));
}
@cahnory
cahnory / SassMeister-input.scss
Created Aug 5, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
// attribute used instead of `class`
$class-attr: 'data-g';
// return attribute selector
@function g($class) {
@cahnory
cahnory / index.html
Created Sep 15, 2014
Empty HTML5 doc
View index.html
<!DOCTYPE html>
<html lang="fr-FR" dir="ltr">
<head>
<title>Untitled HTML5 document</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--[if lt IE 9]><script src="assets/libs/html5shiv/html5shiv-prev3.7.2.js"></script><![endif]-->
<link rel="stylesheet" href="assets/main.css" />
@cahnory
cahnory / package.json
Last active Aug 29, 2015
package.json boilerplate
View package.json
{
"name": "{{name}}",
"version": "0.1.0",
"description": "",
"keywords": [],
"author": {
"name": "François Germain",
"email": "cahnory@gmail.com"
},
@cahnory
cahnory / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
@function map-set($map, $key, $value) {
@return map-merge($map, ($key: $value));
}
@cahnory
cahnory / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
// path e.g. 'c.B'
$z-stack: (
a: 'just a comment', // 8
b: 2, // 7 @warn
c: ( // 4
@cahnory
cahnory / ordering.css
Created Jan 8, 2015
Ordering CSS properties
View ordering.css
.ordering {
background: black;
color: white;
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 0;
text-align: right;
}
@cahnory
cahnory / deferred.jsx
Last active Aug 29, 2015
Load and render react component from browser
View deferred.jsx
/*jslint node: true */
'use strict';
var React = require('react');
var loader = require('scriptjs');
module.exports = React.createClass({
propTypes: {
handler: React.PropTypes.string.isRequired,
handlerUrl: React.PropTypes.string,
@cahnory
cahnory / SassMeister-input.scss
Created May 6, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
@function chain($value, $functions...) {
@each $function in $functions {
$value: call(nth($function, 1), set-nth($function, 1, $value)...);
}
@cahnory
cahnory / SassMeister-input.scss
Created May 6, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
You can’t perform that action at this time.