Skip to content

Instantly share code, notes, and snippets.

zjaml zjaml

Block or report user

Report or block zjaml

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zjaml
zjaml / orientation.md
Last active Apr 23, 2019
Orientation
View orientation.md

Orientation

Taste and aesthetics

  • What is elegant code
  • What should be put where

Learning how to learn

  • Read open source code
@zjaml
zjaml / cloudSettings
Last active Feb 28, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-02-28T03:51:49.687Z","extensionVersion":"v3.2.5"}
@zjaml
zjaml / cloudSettings
Created Feb 25, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-02-25T05:53:00.556Z","extensionVersion":"v3.2.5"}
@zjaml
zjaml / cloudSettings
Created Feb 22, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-02-22T01:21:10.031Z","extensionVersion":"v3.2.5"}
View FabricArrow.js
var canvas = this.__canvas = new fabric.Canvas('c');
canvas.selection = false;
function drawArrow(fromx, fromy, tox, toy) {
var angle = Math.atan2(toy - fromy, tox - fromx);
var headlen = 15; // arrow head size
// bring the line end back some to account for arrow head.
@zjaml
zjaml / npm-exec.bat
Created Apr 19, 2017 — forked from joeyespo/npm-exec.bat
Execute a node_modules/.bin script on Windows.
View npm-exec.bat
@ECHO OFF
SETLOCAL
REM Speed up by checking for bin directory directly
IF NOT EXIST node_modules\.bin GOTO FINDBIN
SET BIN=.\node_modules\.bin
GOTO RUN
:FINDBIN
REM Find the current bin directory from npm, storing the result in 'BIN'
@zjaml
zjaml / cmd.md
Last active Jun 30, 2018
Common Command
View cmd.md
  • Port Scan
    • Windows:
// list listened ports with process info
netstat -ano -np TCP | find "80"
  • Linux & Mac
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 ->
You can’t perform that action at this time.