I hereby claim:
- I am schubidu on github.
- I am schubidu (https://keybase.io/schubidu) on keybase.
- I have a public key ASCjVibhaINA3Rosnwa3rBUyTezfGgMeVV2I1ljeN5C_9Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// npm install --save-dev react-test-renderer | |
import React from 'react'; | |
import renderer from 'react-test-renderer'; | |
export default (component) => { | |
const tree = renderer.create( | |
component | |
).toJSON(); | |
expect(tree).toMatchSnapshot(); | |
} |
import React from 'react'; | |
import renderer from 'react-test-renderer'; | |
export default (component) => { | |
const tree = renderer.create( | |
component | |
).toJSON(); | |
expect(tree).toMatchSnapshot(); | |
} |
var faker = require('faker'); | |
var Chance = require('chance'); | |
var fs = require('fs'); | |
var chance = new Chance(); | |
var max = 28; | |
var participants = []; | |
var i = 0; | |
for (i; i < max; i++) { |
// install gulp depencies | |
// npm install -D gulp gulp-ruby-sass gulp-autoprefixer gulp-connect gulp-connect gulp-rename gulp-minify-css gulp-filesize gulp-filter gulp-base64 gulp-notify | |
// Set source and destination directory | |
var config = { | |
src: './app/scss/**/*.scss', | |
dest: './app/css' | |
} | |
// watch with gulp css:watch |
<div class="tilesCollection"> | |
<div class="tiles" id="t1">A</div> | |
<div class="tiles" id="t2">B</div> | |
<div class="tiles" id="t3">C</div> | |
<div class="tiles" id="t4">D</div> | |
<div class="tiles" id="t5">E</div> | |
<div class="tiles" id="t6">F</div> | |
</div> |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// names and colors from http://flatuicolors.com/ | |
$turquoise: #1ABC9C; | |
$green-sea: #16A085; | |
$emerland: #2ECC71; | |
$nephritis: #27AE60; | |
$peter-river: #3498DB; | |
$belize-hole: #2980B9; | |
$amethyst: #9B59B6; | |
$wisteria: #8E44AD; |
<?php | |
foreach(glob("*.html") as $page){ | |
echo '<li><a href="' . $page . '">' . $page . '</a></li>'; | |
} |
Element.addMethods(["textarea"], { | |
/** | |
* @description supports maxLength-limitations to textarea; | |
* @param element | |
* @param max charset length in field | |
* @param handler a handler-function which have the current left charset value in parameter | |
*/ | |
maxTextLength: function(element, max, handler){ | |
element = $(element); | |
handler = (handler == undefined) ? function(){} : handler; |