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
#!/usr/bin/env python3 | |
import iterm2 | |
# To install, update, or remove packages from PyPI, use Scripts > Manage > Manage Dependencies... | |
async def main(connection): | |
# Your code goes here. Here's a bit of example code that adds a tab to the current window: | |
app = await iterm2.async_get_app(connection) | |
window = app.current_terminal_window | |
window = await window.async_create(connection) |
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
### Keybase proof | |
I hereby claim: | |
* I am mikemurray on github. | |
* I am mikemurray (https://keybase.io/mikemurray) on keybase. | |
* I have a public key ASBJ0Ic1z9Yya6W7jvqC2s2ewSqeK110-bQFybjambpQgwo | |
To claim this, I am signing this object: |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
php: { | |
dev: { | |
options: { | |
hostname: '127.0.0.1', |
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
# List all running transmit disk tasks | |
# --------------------------------------------------------------------------- | |
ps aux | grep "Transmit Disk" | |
# Kill All transmit disk tasks. | |
# | |
# Potentially dangerious as it could apply to all users on system. | |
# --------------------------------------------------------------------------- | |
pkill -9 -f "Transmit Disk" |
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
mkdir -p "1 Introduction" | |
git mv index.md "1 Introduction/index.md" | |
git mv admin/dashboard.md "1 Introduction/dashboard.md" | |
git mv admin/tags.md "1 Introduction/tags.md" | |
git mv admin/products.md "1 Introduction/products.md" | |
git mv admin/orders.md "1 Introduction/orders.md" | |
git mv admin/shipping.md "1 Introduction/shipping.md" | |
git mv admin/faq.md "1 Introduction/faqs.md" | |
mkdir -p "2 Developer" | |
git mv developer/getting-started.md "2 Developer/index.md" |
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
// ... (add to top of file) | |
const stage0Preset = Npm.require("babel-preset-stage-0") | |
// ... (code omitted for brevity) | |
function getDefaultOptions(extraFeatures) { | |
// ... (code in function omitted for brevity) | |
// ... Right before the return, push your preset into the presets array of options | |
options.presets.push(stage0Preset) |
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
{ | |
"color_scheme": "Packages/Theme - Phoenix/Color Scheme/Clouds Midnight.tmTheme", | |
"font_size": 12.0, | |
"ignored_packages": | |
[ | |
"Vintage", | |
"SFTP" | |
], | |
"indent_guide_options": | |
[ |
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
<?php | |
// Loop Variables | |
$max_per_row = 2; | |
?> | |
<?php for($i = 0; $i < count($data); $i++): ?> | |
<?php if($i % $max_per_row == 0 || $i == 0): ?> | |
<div class="grid-row"> <!-- Start Grid row --> | |
<?php endif ?> |
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
<script src="/_js/vendor/froogaloop2.min.js"></script> |
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
ReactionCore.MethodHooks.before("workflow/pushOrderWorkflow", function (options) { | |
check(options, Match.OrderHookOptions); | |
console.log("workflow/pushOrderWorkflow: About to check status", options); | |
let workflow = options.arguments[0]; | |
let status = options.arguments[1]; | |
let order = options.arguments[2]; | |
if (Meteor.server.method_handlers[workflow]) { | |
let result = Meteor.call(`workflow/${workflow}/${status}`, options); |
NewerOlder