GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.
import { utils } from 'ethers' | |
export interface Amulet { | |
value: string; | |
hash: string; | |
count: number; | |
} | |
const getAmuletCount = (hash: string): number => { | |
const matches = hash.match(/(8)\1*/g); |
GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.
convert input.png -trim +repage output.png |
- webpack.config.js | |
- postcss.config.js | |
- config.js | |
- addons.js |
"use strict"; | |
const autoprefixer = require("autoprefixer"); | |
const path = require("path"); | |
const webpack = require("webpack"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
const CaseSensitivePathsPlugin = require("case-sensitive-paths-webpack-plugin"); | |
const InterpolateHtmlPlugin = require("react-dev-utils/InterpolateHtmlPlugin"); | |
const WatchMissingNodeModulesPlugin = require("react-dev-utils/WatchMissingNodeModulesPlugin"); | |
const eslintFormatter = require("react-dev-utils/eslintFormatter"); |
# Author: Zameer Ansari | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
const trackTime = timing => { | |
const now = performance.now(); | |
if (!timing.startTime) timing.startTime = now; | |
const elapsed = now - timing.startTime; | |
const {duration} = timing; | |
if (duration != null && duration <= elapsed) timing.startTime = null; | |
return elapsed; | |
}; | |
const delay = (callback, duration) => { |
const OAuth = require('oauth'); | |
const Twit = require('twit'); | |
const nconf = require('nconf'); | |
// temp global var | |
var oAuthTokenSecret; | |
// load config file which contains twitter app tokens | |
nconf.file({ file: './config/twitter-share.json' }).env() |
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**" | |
], | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": false, |
Many users when are given server access, do not have root (or sudo) privileges and can not simply do
sudo apt-get install python-pip
.
Here's an easy way you can install and use pip without root (or sudo) access in a local directory.
Note : This works without easy_install
too.