Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

ineo6 ineo6

🎯
Focusing
View GitHub Profile
@lakoilija
lakoilija / readme.txt
Created Sep 2, 2020
best game 1.exe (PuzzleScript Script)
View readme.txt
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@nasirkhan
nasirkhan / zip-split-unzip.md
Last active Mar 1, 2021
Split a Zip file and combine and unzip next linux
View zip-split-unzip.md

You have existing.zip but want to split it into 50M sized parts.

zip existing.zip --out new.zip -s 50m

will create

new.zip
@wohugb
wohugb / .npmrc
Last active Sep 23, 2017 — forked from tonyc726/.npmrc
河蟹加速npm/yarn的资源安装升级速度
View .npmrc
# 注册模块镜像
registry=https://registry.npm.taobao.org
# node-gyp 编译依赖的 node 源码镜像
disturl=https://npm.taobao.org/dist
# chromedriver 二进制包镜像
chromedriver_cdnurl=https://cdn.npm.taobao.org/dist/chromedriver
# operadriver 二进制包镜像
View google-voice-auto-click.js
/**
* For Google Voice
* @Author zbinlin <zbinlin@outlook.com>
*/
var sleep = delay => new Promise(resolve => setTimeout(resolve, delay));
var composeClick = function x(btn) {
var rect = btn.getBoundingClientRect();
var x = Math.floor(rect.clientX + rect.width * Math.random());
var y = Math.floor(rect.clientY + rect.height * Math.random());
View D3JS Tree Visualizer with Search and Panning.md

d3js Tree Visualizer with Search, Panning, Expand and Collapse

Overview

This example pulls together various examples of work with trees in D3.js. See the d3js Tree Visualizer live here.

Features:

  • Expanding and collapsing nodes
  • Panning
@clinyong
clinyong / build.js
Created Mar 11, 2016
webpack build script.
View build.js
import webpack from 'webpack'
import config from './webpack'
import swig from 'swig'
import fs from 'fs'
function writeTemplate (name) {
let sourceTemplate = config.templatePath + '/prod.tmpl'
let targetTemplate = config.buildTemplatePath + '/index.tmpl'
let content = swig.renderFile(sourceTemplate, {name})
fs.writeFile(targetTemplate, content, err => {
@yulijia
yulijia / .git-commit-blog.txt
Last active Aug 6, 2020 — forked from Linell/.git-commit-template.txt
git commit template in Chinese
View .git-commit-blog.txt
# Type(<scope>): <subject>
# <body>
# <footer>
# type字段
# add 增加新博客/页面(add new post/page)
# correct 改错别字/语法(correct spelling/grammar )
# update 更新内容(update content)
@nevergiveup-j
nevergiveup-j / onerror
Last active Jun 12, 2018
前端代码异常日志收集与监控
View onerror
/**
* @param {String} msg 错误信息
* @param {String} url 出错的文件
* @param {Long} line 出错代码的行号
* @param {Long} col 出错代码的列号
* @param {Object} error 错误的详细信息,Anything
*/
window.onerror = function(msg,url,line,col,error){
//没有URL不上报!上报也不知道错误
if (msg != "Script error." && !url){
@hyle
hyle / ko.utils.3.3.0.signatures.js
Last active Apr 9, 2019
KnockoutJS 3.3.0 utils (ko.utils) signatures
View ko.utils.3.3.0.signatures.js
// knockout 3.3.0
ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ }
ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ }
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
@sebmarkbage
sebmarkbage / Enhance.js
Last active Sep 11, 2021
Higher-order Components
View Enhance.js
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {