Instantly share code, notes, and snippets.

View FlowReactTutorial.js
//
// MIT License
//
// Copyright (c) 2018 Ali Sharif
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
View arch.txt
+-+-+-+-+-+-+ +-+ +-+-+-+-+-+-+ +-+
|O|p|t|i|o|n| |1| |O|p|t|i|o|n| |2|
+-+-+-+-+-+-+ +-+ +-+-+-+-+-+-+ +-+
╔════════════════════╗ ╔════════════════════╗
║ ║ ║ ║
║ Client Request ║ ║ Client Request ║
║ ║ ║ ║
╚════════════════════╝ ╚════════════════════╝
│▲
View example.feature
Feature: Google Searching
As a web surfer, I want to search Google, so that I can learn new things.
Scenario: Simple Google search
Given a web browser is on the Google page
When the search phrase "panda" is entered
Then results for "panda" are shown
And the result page displays the text
"""
Scientific name: Ailuropoda melanoleuca
View antd_sc_example.js
import { Link } from 'react-router-dom'
import { Badge, Col, Menu } from 'antd'
const StyledBadge = styled(Badge)`
.ant-badge-count {
background-color: #7ECBBF;
color: white;
box-shadow: 0 0 0 1px #d9d9d9 inset;
}
`
View movies.md

War

  • Bridge of Spies (2015)
  • Dunkirk (2017)
View keybase.md

Keybase proof

I hereby claim:

  • I am newswim on github.
  • I am newswim (https://keybase.io/newswim) on keybase.
  • I have a public key whose fingerprint is 7866 2209 B982 FCA8 5D2D 77A1 1236 DEA9 5751 811B

To claim this, I am signing this object:

View deeper_delete.js
// README: https://gist.github.com/newswim/a99b09a13e80c262d61915f0f28a51b1
// For instructions on `shopify-api-node`
// see: https://github.com/christophergregory/shopify-node-api
#!/usr/bin/env node
"use strict"
const clear = require('clear')
const inquirer = require('inquirer')
View readme.md

Start-up

  • Clone this repo
  • yarn or npm install
  • Create a file config/secrets.json -- Only the first 4 fields are required
{
  "api_key" : "",
  "shopName" : "",
  "password" : "",
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->