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
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// ----------------------------------------------------------------------------- | |
// Introduction | |
// ----------------------------------------------------------------------------- | |
// Here is hacky and experimental solution for cross-scopes extends |
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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
//// | |
/// String to number converter | |
/// @author Hugo Giraudel | |
/// @access private | |
//// |
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
// Sass utilities | |
@import "helpers/variables"; | |
@import "helpers/functions"; | |
@import "helpers/mixins"; | |
@import "helpers/placeholders"; | |
// Vendors and external stylesheets | |
@import "vendors/bootstrap"; | |
@import "vendors/jquery-ui"; |
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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
$z-layers: ( | |
"goku": 9001, | |
"shoryuken": 8000, | |
"modal": ( | |
"base": 500, |
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
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
/// Map of breakpoints | |
/// @type Map | |
$breakpoints: ( | |
'small': '(min-width: 860px)', | |
'medium': '(min-width: 1000px)', |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
/// Performs right-to-left function composition. | |
/// The rightmost function may have any arity; | |
/// the remaining functions must be unary. | |
/// | |
/// @see http://ramdajs.com/docs/#compose Ramda Compose | |
/// |
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
/// This function is exactly like `map-get` except it goes deeper. | |
/// You pass the map as first argument and then an unlimited number of keys to be accessed. | |
/// If a key cannot be reached, the function aborts and returns `null`. | |
@function map-deep-get($map, $keys...) { | |
@each $key in $keys { | |
$map: map-get($map, $key); | |
@if (type-of($map) == 'null') { @return $map; } | |
} |
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
const { exec } = require('child_process') | |
const { promisify } = require('util') | |
const chalk = require('chalk') | |
// See: https://docs.npmjs.com/about-audit-reports#severity | |
const SEVERITY_LEVELS = ['low', 'moderate', 'high', 'critical'] | |
const SEVERITY_THRESHOLD = 'critical' | |
const run = promisify(exec) | |
// Get the output of a command. If the command exits with a non-zero code, try |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
//// | |
// I have written a lot of different `str-replace` Sass functions over | |
// the months yet none of my tries were succeeding in making the new substring | |
// able to contain the one to replace (e.g. `str-replace($str, "a", "ab")`). | |
// Thanks to Valérian Galliat (@valeriangalliat), I finally managed to build |
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
import React from 'react'; | |
import MyCoolTextarea from '../MyCoolTextarea'; | |
import MyCoolCounter from '../MyCoolCounter'; | |
const MyCoolComponent = React.createClass({ | |
// Define a method on the parent component describing what should happen when | |
// the textarea gets updated. At this point, the only thing needed is to store | |
// the length of the textarea’s content in a state on the parent component. | |
// |
NewerOlder