Skip to content

Instantly share code, notes, and snippets.

View mike623's full-sized avatar

404 Not Found mike623

View GitHub Profile
ffmpeg -i intro.mov -vf "boxblur=5:1" intro-blur.mov
@mike623
mike623 / iterm2.md
Created March 13, 2016 15:57
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@mike623
mike623 / .eslintrc.yml
Created March 11, 2016 08:47 — forked from dferber90/.eslintrc.yml
Example setup of ESLint-plugin-Meteor with AirBnB's code style
# enable ES6
parserOptions:
ecmaVersion: 6
sourceType: "module"
ecmaFeatures:
jsx: true # enable React's JSX
# register plugins
plugins:
- meteor
@mike623
mike623 / router.js
Last active March 2, 2016 02:41
busy box with meteor alipay
Router.route('Alipay/payment/notify_url', { where: 'server' })
.post(function(){
this.response.setHeader( 'access-control-allow-origin', '*' );
this.response.setHeader('Content-Type', 'application/json');
const {out_trade_no} = this.request.body;
// your logic
})
@mike623
mike623 / method.js
Created February 29, 2016 02:55
simple create sign for alipay using MD5
Meteor.methods({
createAlipayLink:function(){
const pay = "https://mapi.alipay.com/gateway.do?";
const pay = "https://openapi.alipaydev.com/gateway.do?"; // for sandbox
let params = {
seller_email:"abc@gmail.com",
service: 'create_forex_trade_wap',
@mike623
mike623 / orphancheck.sh
Created January 30, 2016 11:01 — forked from esaborit4code/orphancheck.sh
Bash script to find unused images within a project's folder. Based on Volomike's script at http://stackoverflow.com/a/8174681
#!/bin/bash
# Based on Volomike's script at http://stackoverflow.com/a/8174681
MYPATH=$1
ALL_IMAGES=$MYPATH/all_images
UNUSED_IMAGES=$MYPATH/unused_images
echo "" > $ALL_IMAGES
for format in jpg jpeg png gif; do
@mike623
mike623 / util.scss
Created January 13, 2016 21:08
sanuker always used utils of css
%flex-row-container {
@extend %flex-bare-container;
-webkit-flex-direction: row;
-ms-flex-direction: row;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
}
%flex-column-container {
@mike623
mike623 / client.js
Created January 8, 2016 09:35
change alert box with cordova dialog
Meteor.startup(function(){
if (Meteor.isCordova) {
window.alert = navigator.notification.alert;
}
});
@mike623
mike623 / dotdotdot.js
Created January 4, 2016 02:39
... application
Template.ListViewDisplay.onRendered(function () {
this.autorun(function(){
Tracker.afterFlush(function () {
Meteor.defer(function (argument) {
$(".listView-Item--content").dotdotdot({});
})
})
});
});