Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Yin layerssss

View GitHub Profile
@layerssss
layerssss / electron-publisher-custom.js
Created Jan 12, 2022
This publisher copies files to publish/ folder, to be rsync/upload-ed to any generic HTTP(s) server.
View electron-publisher-custom.js
// 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 Jun 11, 2020
swarmpit memory leak log
View docker-compose.yml
app:
image: swarmpit/swarmpit:1.9
healthcheck:
test:
- CMD
- curl
- -f
- -H
- "Authorization: Bearer XXXXXXX"
- http://localhost:8080/api/services
View rootResolver.js
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 Aug 29, 2015
珠海车牌自选号
View plates_c.rb
aa = [
'CRC',
'CDN',
'CSS',
'CPP',
'CPU',
'CRT',
'CDR',
'CES',
'CFG',
@layerssss
layerssss / index.slim
Created Sep 8, 2014
A Pen by Michael Yin.
View index.slim
.l
.front-1.front
.front-2.front
.left
.bottom
.top-1
.top-2
.right-1
.right-2
@layerssss
layerssss / flow_label.js
Created Aug 16, 2014
flowing text for cocos2d-js labels
View flow_label.js
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;
View zeus_shim.sh
# 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 Nov 11, 2013
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
View Procfile
web: node server.js