Skip to content

Instantly share code, notes, and snippets.

@ajl100b
ajl100b / gist:fd78aa1fb6f6c106bdf7dcdf08f2f6d8
Created March 7, 2018 11:25 — 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
UPDATE oobeo_api_activity AS a1
SET time_end = (a2.time_end + (random() * (timestamp '2014-01-10 11:00:00' -
timestamp '2014-01-10 10:00:00')))
FROM oobeo_api_activity AS a2
WHERE a1.activity_type_id = 6 AND a2.activity_type_id=2 AND a1.visit_id = a2.visit_id;
curl
https://api.cumul.io/0.1.0/authorization \
-X POST \
-H "Content-Type: application/json" \
-d \
'{
"key": "< API key >",
"token": "< API token >",
"action": "create",
"version": "0.1.0",
@ajl100b
ajl100b / app.js
Last active February 21, 2019 14:21
Redirect to search results component upon submit of search terms from search bar embedded in a global navbar
import React, { Component } from 'react'
import { Redirect } from 'react-router'
export default class Search extends Component {
constructor () {
super();
this.state = {
fireRedirect: false
}
}