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
# ~/.gitconfig | |
[alias] | |
stash-grep = "!f() { git stash list | awk -F: '{print $1}' | while read stash; do git stash show -p $stash | grep \"$1\" && echo \"Found in $stash\"; done; }; f" |
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 { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
class IconComponent extends Component { | |
render() { | |
const { size, faded } = this.props; | |
const colors = { | |
primaryColor: faded ? '#dfdfe7' : '#00cc99', | |
secondaryColor: faded ? '#dfdfe7' : '#f5a623', |
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
// use babel-register to precompile ES6 syntax | |
require('babel-register')({ | |
ignore: /node_modules/, | |
}); | |
require('isomorphic-fetch'); | |
require('./test'); |
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, { Component } from 'react'; | |
import { StyleSheet, View, Image, Text } from 'react-native'; | |
const styles = StyleSheet.create({ | |
loaderSplashView: { | |
backgroundColor: BSColors.navBar, | |
flex: 1, | |
flexDirection: 'column', | |
alignItems: 'center', | |
justifyContent: 'center', |
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 | |
namespace FeatureContext\Page; | |
use SensioLabs\Behat\PageObjectExtension\PageObject\Page; | |
class BasePage extends Page | |
{ | |
/** |
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 | |
namespace M6\Helpers\Bundle\ORMBundle\Repository; | |
use Symfony\Component\Security\Core\SecurityContextInterface; | |
use Doctrine\ORM\EntityRepository; | |
use Doctrine\ORM\QueryBuilder; | |
/** | |
* Repository class |
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 | |
.... | |
/** | |
* Validate Method | |
* | |
* @param ExecutionContext $context Execution context | |
* | |
* @return void | |
*/ | |
public function validateMethod(ExecutionContext $context) |
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 | |
#pre-commit | |
function abort() { | |
echo -e "\n\terror: Commit abort" | |
echo -e "\t$1" | |
exit 1 | |
} | |
echo $(tput bold)$(tput setaf 5)"Running pre-commit hook..."$(tput sgr0) |
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 | |
$data = array( | |
'user' => array( | |
'email' => '[email protected]', | |
'name' => 'Super User', | |
'address' => array( | |
'billing' => 'Street 1', | |
'delivery' => 'Street 2' | |
) |
NewerOlder