Skip to content

Instantly share code, notes, and snippets.

View designforhuman's full-sized avatar

David Lee designforhuman

View GitHub Profile
@hyukkwonepic
hyukkwonepic / paymentValidation.js
Created November 10, 2017 08:46
아임포트 결제 검증 프로세스 node.js 예제
const express = require("express");
const bodyParser = require("body-parser");
const axios = require("axios");
const app = express();
const IMPORT_API_BASE_URL = "https://api.iamport.kr";
const MY_BASE_URL = "https://www.myawesomeservice.com";
async function validate(imp_uid, response) {
@taozhi8833998
taozhi8833998 / fabricBezierCurve.js
Created August 31, 2017 06:16 — forked from paulkaplan/fabricBezierCurve.js
Cubic bezier curves with fabric.js renderer
var CubicBezier = function(canvas, opts){
if(!opts) opts = {};
this.start = opts.start || new Vec2(100,100);
this.end = opts.end || new Vec2(400, 400);
this.c1 = opts.c1 || new Vec2(100, 300);
this.c2 = opts.c2 || new Vec2(300, 100);
this.curve = new fabric.Path( this.toSVGPath() );
@mxstbr
mxstbr / Readme.md
Last active December 20, 2023 12:01
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
@bomberstudios
bomberstudios / sketch-diff-in-git.md
Last active November 8, 2019 17:58
How to diff your .sketch files in Git

Using sketchtool to diff your .sketch files using text

Requirements

You need to have SketchTool installed somewhere in your path.

Setup

Add this in your ~/.gitconfig file (for some reason, it won't work in a local .gitconfig file):

@k0pernikus
k0pernikus / getCachedJSON.js
Created October 8, 2012 15:14 — forked from kpuputti/gist:1040118
jQuery.getJSON abstraction to cache data to localStorage with invalidation option based time
jQuery.extend({
getCachedJSON: function (url, callback) {
var cacheTimeInMs = 3600000;
var currentTimeInMs = new Date().getTime();
var cache = {
data:null,
timestamp:null
};