This file contains 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 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 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 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 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 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 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 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' | |
) |
This file contains 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.expr[':'].contains = function(a, i, m) { | |
var rExps=[ | |
{re: /[\xC0-\xC6]/g, ch: "A"}, | |
{re: /[\xE0-\xE6]/g, ch: "a"}, | |
{re: /[\xC8-\xCB]/g, ch: "E"}, | |
{re: /[\xE8-\xEB]/g, ch: "e"}, | |
{re: /[\xCC-\xCF]/g, ch: "I"}, | |
{re: /[\xEC-\xEF]/g, ch: "i"}, | |
{re: /[\xD2-\xD6]/g, ch: "O"}, | |
{re: /[\xF2-\xF6]/g, ch: "o"}, |