Skip to content

Instantly share code, notes, and snippets.

* {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.margin-center {
margin-left: auto;
margin-right: auto;
}
.radius {
border-radius: 5px;
class FlipCounterView extends KDView
constructor : (options = {}, data = {}) ->
options.style ?= "dark"
options.from ?= 5000
options.to ?= 10000
options.interval ?= 1000
options.step ?= 1
options.autoStart ?= yes
options.direction = if options.from < options.to then "up" else "down"
options.digits ?= if options.direction is "up" then options.to.toString().length else options.from.toString().length
module.exports = function(grunt) {
var _serve = grunt.option('serve') || false;
var _devTasks = ['copy', 'browserify', 'compass', 'concurrent'];
var _concurrentTasks = ['watch']
var _watcherTasks = {
htmls : ['copy:htmls'],
styles : ['compass'],
images : ['copy:images'],
scripts : ['browserify']
}
@import '~styles/colors';
@import '~styles/typography';
$timeAndEasing: .75s cubic-bezier(0.75,-0.34, 0.26, 1.21);
$expandedWidth: 185px;
$collapsedWidth: 80px;
.Wrapper {
background: $c-nav-bg;
flex: 1;
@burakcan
burakcan / forward_backward.js
Created June 26, 2016 17:17
Basic F# forward / backward operators in JS
/* jshint esnext: true */
const FORWARD = '|>';
const BACKWARD = '<|';
function _(...args) {
return function(value) {
return args.reduce((val, curr, index) => {
switch(curr) {
case FORWARD:
import { takeLatest } from 'redux-saga';
import { take, actionChannel, select, call, put } from 'redux-saga/effects';
import authorizedFetch from 'common/utils/fetch/authorizedFetchSaga';
import { getAdAccount } from 'facebook/Campaigns/Manage/reducer/campaign';
import { getAdsets } from 'facebook/Campaigns/Manage/reducer/adsets';
import { FETCH_ADSETS_SUCCESS } from 'facebook/Campaigns/Manage/actions/adsets';
import { FETCH_CAMPAIGN_SUCCESS } from 'facebook/Campaigns/Manage/actions/campaign';
import {
FETCH_TARGETING_INFO,
createFetchTargetingInfoSuccess,
[
{
"ID": 1,
"parentID": 0,
"Phone": "(403) 125-2552",
"City": "Coevorden",
"Name": "Grady"
},
{
"ID": 2,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">