Skip to content

Instantly share code, notes, and snippets.

@waylandzhang
waylandzhang / Atom Editor Cheat Sheet.md
Last active April 9, 2017 04:04 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@waylandzhang
waylandzhang / aws.md
Created December 27, 2016 07:10 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

@waylandzhang
waylandzhang / api.sh
Created August 4, 2016 04:10
K5-api-create-group
curl -X "POST" "https://identity.cloud.global.fujitsu.com/v3/groups" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: d2d7ab5d9a464c65a27a31ce94e290c4" \
-H "Accept: application/json" \
-d $'{"group": {"name": "myTestGroup", "description": "", "domain_id":"631b77056c4c4cc09646dea3e9d9ca1e"}}'
@waylandzhang
waylandzhang / array_frequent_functions.php
Last active December 25, 2015 20:59
Frequently Used Functions
<?php
// used in simpledb return values from AWS SDK2
function array_push_associative(&$arr) {
$args = func_get_args();
array_unshift($args); // remove &$arr argument
foreach ($args as $arg) {
if (is_array($arg)) {
foreach ($arg as $key => $value) {
$arr[$key] = $value;