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
<?php | |
######################################################## | |
# Author : Sebastian Grinke # | |
# Homepage : http://sebastiangrinke.info # | |
# E-Mail : [email protected] # | |
# Copyright : Copyright © 2008 - 2009 Sebastian Grinke # | |
# # | |
# Dieses Dokument darf verändert werden aber das # | |
# Copyright muss erhalten bleiben. # | |
######################################################## |
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
/*! | |
* jQuery JavaScript Library v1.6.2 | |
* http://jquery.com/ | |
* | |
* Copyright 2011, John Resig | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ |
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
let AnimationWrapper = React.createClass({ | |
render() { | |
console.log(this.props.childClassName + ' render'); | |
return this.props.children; | |
}, | |
componentWillAppear (callback) { | |
console.log(this.props.childClassName + ' willappear'); | |
callback(); |
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
# Convert an animated video to gif | |
# | |
# Works well with both screencaptures from quicktime (.mov) and recordings from iOS (.mp4) | |
# | |
# @param $1 - video file name like `animation.mov` | |
# @param $2 - the output gif name like `animation.gif` | |
# @param @optional $3 - resize parameter as widthxheight like `400x300` | |
# | |
# Example: rec2gif animation.mov animation.gif 400x300 | |
# Requirements: ffmpeg and gifsicle. Can be downloaded via homebrew |
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
#!/bin/bash | |
# Installation instructions for Travis CI, example repo using it in production: https://github.com/stipsan/uikit-react | |
# .travis.yml | |
# before_install: "bash <(curl -sL https://gist.github.com/stipsan/e69536d1a22c08e6e4feb4e14844face/raw/)" | |
echo "Should yarn.lock be regenerated?" | |
if [[ $TRAVIS_PULL_REQUEST_BRANCH != *"greenkeeper"* ]]; then | |
echo "Not a GreenKeeper Pull Request, aborting" |
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
@contrast-color: #fff; | |
@contrast-nav-side-active-background: @contrast-color; | |
@navbar-nav-height: 40px; |
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 add = require('./add'); | |
describe('add', () => { | |
it('should add two numbers', () => { | |
expect(add(1, 2)).toBe(3) | |
}); | |
}); |
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 renderer from 'react-test-renderer' | |
import Header from '../Header' | |
import store from '../store' | |
jest.mock('react-redux-loading-bar', () => { | |
const ReactReduxLoadingBar = require.requireActual('react-redux-loading-bar') | |
return { | |
// Spread out the original module | |
...ReactReduxLoadingBar, |
OlderNewer