Skip to content

Instantly share code, notes, and snippets.


Neekey neekey

Block or report user

Report or block neekey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
neekey / dockerfile
Created May 2, 2018
create node and npm and puppeteer in Docker
View dockerfile
FROM python:3.6
ADD . /app
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# install node and npm for query thumbnail process
RUN curl -o- | bash
"""Run the unit tests."""
import unittest
import sys
def iterate_test_cases(test_suite_or_case):
"""Iterate through all of the test cases in 'test_suite_or_case'."""
suite = iter(test_suite_or_case)
except TypeError:
neekey / multipleCacheMemoize.js
Last active Feb 14, 2017
View multipleCacheMemoize.js
/* eslint-disable */
import { createSelectorCreator } from 'reselect';
function execFunc(func, ...args) {
return func(...args);
function multipleCacheMemoize(func) {
const argsArray = [];
const resultArray = [];
View spotlight.js
/* eslint-disable */
import EventEmitter from 'wolfy87-eventemitter';
import isFunction from 'lodash/isFunction';
import isNumber from 'lodash/isNumber';
import isString from 'lodash/isString';
import isPlainObject from 'lodash/isPlainObject';
function eventDelegate(dom, eventName, className, handler) {
dom.addEventListener(eventName, function (e) {
const target =;
git ftp catchup -u username -p password --remote-root htdoc/daigou --syncroot build --version --verbose
neekey / app.js
Created Jun 26, 2016
View app.js
// @link
var React = require('react');
var Router = require('react-router');
var { Route, RouteHandler, Link } = Router;
var AsyncElement = {
loadedComponent: null,
load: function () {
if (this.constructor.loadedComponent)
neekey / index.html
Created Jun 21, 2016
View index.html
<!doctype html>
<html lang="en">
<meta charset="UTF-8">
<script src=""></script>
<script src=""></script>
View async-to-q.js
var fs = require('fs')
var Q = require('q')
var fs_stat = Q.denodeify(fs.stat)
var fs_readdir = Q.denodeify(fs.readdir)
var files = [
neekey / getGitInfo.js
Created Aug 27, 2014
View getGitInfo.js
function getRepoInfo(){
var gitPath = PATH.resolve( process.cwd(), '.git' );
console.log( gitPath );
if( FS.existsSync( gitPath ) ){
var HEAD = FS.readFileSync( PATH.resolve( gitPath, 'HEAD' )).toString();
var CONFIG = FS.readFileSync( PATH.resolve( gitPath, 'config' )).toString();
var result = {};
View node-http-proxy-with-redirects.js
var http = require('http'),
httpProxy = require('http-proxy');
// Create an instance of node-http-proxy
var proxy = new httpProxy.HttpProxy({
target: {
host: 'localhost',
port: 9001
You can’t perform that action at this time.