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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { AppContainer } from 'react-hot-loader'; | |
import App from './app/App.jsx'; | |
import './styles/main.scss'; | |
const render = Component => { | |
ReactDOM.render( | |
<AppContainer> | |
<Component /> |
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
const rootUrl = '/'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const autoprefixer = require('autoprefixer'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const WebpackNotifier = require('webpack-notifier'); | |
const extractStyle = new ExtractTextPlugin({ |
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
Show hidden characters
{ | |
"presets":[ | |
[ | |
"es2015", | |
{ | |
"modules": false | |
} | |
], | |
"react" | |
], |
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 | |
$dir = 'img'; | |
$files = scandir($dir); | |
$ext = '.png'; | |
foreach ($files as $img) { | |
if ( substr_compare($img, $ext, -strlen($ext), strlen($ext)) === 0 ) { | |
?> | |
<h2 style="font-family: monospace;"><?=$img?></h2> | |
<div style="text-align: center; margin-bottom: 100px;"> | |
<img src="img/<?=$img?>"> |
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
http://i.imgur.com/pQXZjor.png | |
~/.gitconfig | |
[alias] | |
assumed = "!git ls-files -v | grep ^h | cut -c 3-" | |
assume = "update-index --assume-unchanged" | |
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged" |
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
#titanic { | |
float: none; | |
} | |
#big-bang::before { | |
content: ""; | |
} | |
#tower-of-pisa { | |
font-style: italic; | |
} | |
.ninja { |
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 | |
$files = array(); | |
$dir = opendir('.'); // open the cwd..also do an err check. | |
while(false != ($file = readdir($dir))) { | |
if(($file != ".") and ($file != "..") and ($file != "index.php")) { | |
$files[] = $file; // put in array. | |
} | |
} |