Skip to content

Instantly share code, notes, and snippets.

View lotosbin's full-sized avatar
🏠
Working from home

bin^2 lotosbin

🏠
Working from home
View GitHub Profile
@lotosbin
lotosbin / Events.cs
Last active August 29, 2015 14:08 — forked from wmiller/Events.cs
using System.Collections;
using System.Collections.Generic;
public class GameEvent
{
}
public class Events
{
static Events instanceInternal = null;
/**************************************************************
24bit HX711参考驱动程序
在C中调用:
extern unsigned long ReadAD(void); . .
unsigned long data;
data=ReadAD(); . .
-------------------------------------------------------------*/
sbit ADDO = P1^5;
sbit ADSK = P0^0;
unsigned long ReadCount(void){
@lotosbin
lotosbin / linc.sh
Created August 26, 2016 02:50 — forked from dozoisch/linc.sh
Run Lint Only on Changed files
git diff -z --name-only --diff-filter=ACMRTUB `git merge-base HEAD master` | xargs -0 eslint
@lotosbin
lotosbin / eslint-changed.sh
Created August 26, 2016 02:55 — forked from kentcdodds/eslint-changed.sh
Shell script to lint only changed files to be used as a githook (specific to my project)
#!/usr/bin/env bash
set -e
# allow being run from somewhere other than the git rootdir
gitroot=$(git rev-parse --show-cdup)
# default gitroot to . if we're already at the rootdir
gitroot=${gitroot:-.};
nm_bin=$gitroot/node_modules/.bin