Skip to content

Instantly share code, notes, and snippets.

View layerssss's full-sized avatar

Michael Yin layerssss

View GitHub Profile
@layerssss
layerssss / electron-publisher-custom.js
Created January 12, 2022 12:01
This publisher copies files to publish/ folder, to be rsync/upload-ed to any generic HTTP(s) server.
// build/electron-publisher-custom.js
//
// This publisher copies files to publish/ folder, to be rsync/upload-ed to any generic HTTP(s) server.
//
// package.json:
//
// "publish": {
// "provider": "custom"
// }
//
@layerssss
layerssss / docker-compose.yml
Created June 11, 2020 03:02
swarmpit memory leak log
app:
image: swarmpit/swarmpit:1.9
healthcheck:
test:
- CMD
- curl
- -f
- -H
- "Authorization: Bearer XXXXXXX"
- http://localhost:8080/api/services
const resolve = require('resolve');
const Path = require('path');
//
// Play together with:
//
// * https://github.com/entwicklerstube/babel-plugin-root-import
// * https://github.com/benmosher/eslint-plugin-import
//
// API: https://github.com/benmosher/eslint-plugin-import/blob/master/resolvers/README.md
//
@layerssss
layerssss / plates_c.rb
Last active August 29, 2015 14:21
珠海车牌自选号
aa = [
'CRC',
'CDN',
'CSS',
'CPP',
'CPU',
'CRT',
'CDR',
'CES',
'CFG',
@layerssss
layerssss / index.slim
Created September 8, 2014 13:45
A Pen by Michael Yin.
.l
.front-1.front
.front-2.front
.left
.bottom
.top-1
.top-2
.right-1
.right-2
@layerssss
layerssss / flow_label.js
Created August 16, 2014 05:54
flowing text for cocos2d-js labels
var HelloWorldLayer = cc.Layer.extend({
sprite:null,
ctor:function () {
this._super();
var size = cc.director.getWinSize();
var helloLabel = new FlowLabel(100, "Lorem ipsum dolor sit amet, consectetur adipisicing elit.", "Arial", 24);
helloLabel.x = size.width / 2;
@layerssss
layerssss / zeus_shim.sh
Last active December 31, 2015 14:59
use [zeus](https://github.com/burke/zeus) as a shim
# Usage:
#
# Paste these functions into your `.*shrc`, and re-open a new session. Then
# you can use `rails`, `rake`, `rspec` to launch their zeus equivalance. If you
# need to invoke a bash script contains those commands, you'll have to call it
# by `source xxxx.sh`.
#
# It works under rbenv. But not tested under rvm (rvm use shell functions, so it may
# not be compliant with these functions)
@layerssss
layerssss / dabblet.css
Created November 11, 2013 04:09
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@layerssss
layerssss / sample-post.md
Created October 11, 2013 01:44
Sample Post
@layerssss
layerssss / Procfile
Created September 18, 2013 09:35 — forked from dvdsgl/Procfile
web: node server.js