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 | ⌘ + ] , ⌘ + [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i intro.mov -vf "boxblur=5:1" intro-blur.mov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable ES6 | |
parserOptions: | |
ecmaVersion: 6 | |
sourceType: "module" | |
ecmaFeatures: | |
jsx: true # enable React's JSX | |
# register plugins | |
plugins: | |
- meteor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Meteor.startup(function(){ | |
if (Meteor.isCordova) { | |
window.alert = navigator.notification.alert; | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.ListViewDisplay.onRendered(function () { | |
this.autorun(function(){ | |
Tracker.afterFlush(function () { | |
Meteor.defer(function (argument) { | |
$(".listView-Item--content").dotdotdot({}); | |
}) | |
}) | |
}); | |
}); |