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 postcss = require('postcss'); | |
const defaultOptions = { | |
bundler: null, | |
browsers: 'Chrome >= 45, ff >= 40, ie >= 10, Safari >= 8' | |
}; | |
const plugin = postcss.plugin('postcss-dialog', (_options) => { | |
const options = Object.assign(defaultOptions, _options); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function testLocalStorage() { | |
for (var i = 0; i < 1000; i++) { | |
localStorage.setItem(i, i); |
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
Process: Electron [44962] | |
Path: /Applications/Actor.app/Contents/MacOS/Electron | |
Identifier: im.actor.app | |
Version: 0.36.8 (0.36.8) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Electron [44962] | |
User ID: 501 | |
Date/Time: 2016-04-05 01:26:38.672 +0300 |
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
proxy_cache_path /var/www/npm_cache levels=2:2 keys_zone=npm_cache:10m max_size=20g inactive=1M use_temp_path=off; | |
server { | |
listen 80; | |
server_name npm.example.com; | |
location / { | |
rewrite ^ https://npm.example.com$request_uri permanent; | |
} | |
} |
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 path = require('path'); | |
const webpack = require('webpack'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const env = process.env.NODE_ENV || 'development'; // eslint-disable-line | |
const development = env === 'development'; | |
const production = env === 'production'; | |
const config = module.exports = { |
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
function actor(){ | |
var $wnd_0 = window, $doc_0 = document, gwtOnLoad_0, bodyDone, base = '', metaProps = {}, values = [], providers = [], answers = [], softPermutationId = 0, onLoadErrorFunc, propertyErrorFunc; | |
if (!$wnd_0.__gwt_stylesLoaded) { | |
$wnd_0.__gwt_stylesLoaded = {}; | |
} | |
if (!$wnd_0.__gwt_scriptsLoaded) { | |
$wnd_0.__gwt_scriptsLoaded = {}; | |
} | |
function isHostedMode(){ | |
var result = false; |
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 isFunction from 'lodash/isFunction'; | |
function createAsyncAction(type, promise) { | |
return (dispatch) => { | |
dispatch({ | |
type, | |
meta: { | |
pending: true | |
} | |
}); |
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 React = require('react'); | |
const EventListener = require('react/lib/EventListener'); | |
const {shouldComponentUpdate} = require('react/lib/ReactComponentWithPureRenderMixin'); | |
const debounce = require('lodash/function/debounce'); | |
const InfinityScroll = React.createClass({ | |
propTypes: { | |
children: React.PropTypes.node.isRequired, | |
threshold: React.PropTypes.number.isRequired, | |
onNextPage: React.PropTypes.func.isRequired, |
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
package main | |
import ( | |
"log" | |
"net/http" | |
"encoding/json" | |
"golang.org/x/crypto/bcrypt" | |
) | |
type HashRequest struct { |
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
upstream example-webpack { | |
server 127.0.0.1:8080; | |
} | |
upstream example-backend { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; |