An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
(background.r > -1 ? encodeToVT100(`[48;2;${background.r};${background.g};${background.b}m`) : '') + | |
(foreground.r > -1 ? encodeToVT100(`[38;2;${foreground.r};${foreground.g};${foreground.b}m`) : '') + |
{ | |
"plugins": [ | |
"react" | |
], | |
"extends": ["eslint:recommended", "plugin:react/recommended"] | |
} |
const net = require('net'); | |
const exec = require('child_process').exec; | |
const os = require('os'); | |
function run(cmd) { | |
return new Promise((resolve, reject) => { | |
exec(cmd, (err, stdout) => { | |
if (err) { | |
return reject(err); | |
} |
/// Computes the height of the tilted pseudo-element based on the given angle | |
/// using Pythagoras Theorem. | |
// sin(..), pow(..) and sqrt(..) functions come from this pen: | |
// http://codepen.io/HugoGiraudel/pen/rLpPGo | |
/// @access public | |
/// @author Hugo Giraudel | |
/// @param {Angle} $angle - the tilt angle | |
@function get-tilted-height($angle) { | |
$a: (100% / 1%); | |
$A: (90deg - $angle); |
``` | |
# webpack-dev-server --watch-poll | |
``` |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |
echo "|-|/-\C|< |3/-\C|< |\|0\/\/!"|perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`~{;;y; -/:-@[-`{|~};`-{/" *-;;s;;$_;see' |
import _$ from 'jquery'; | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import TestUtils from 'react-addons-test-utils'; | |
import jsdom from 'jsdom'; | |
import chai, { expect } from 'chai'; | |
import chaiJquery from 'chai-jquery'; | |
import { Provider } from 'react-redux'; | |
import { createStore } from 'redux'; | |
import reducers from '../src/reducers'; |
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"ecmaFeatures": { |