Skip to content

Instantly share code, notes, and snippets.

View davidshimjs's full-sized avatar
🏠
CEO/Co-Founder@Cafenono Corp

Sangmin, Shim davidshimjs

🏠
CEO/Co-Founder@Cafenono Corp
View GitHub Profile
@davidshimjs
davidshimjs / gist:c962a269fccdbd7d2a2dd68abcfd0b5b
Last active November 3, 2020 04:34
AWS 서비스 목록 CSV로 뽑기
var output = '';
document.querySelectorAll('li[data-testid^=services-list-item]').forEach(el => {
const serviceLabel = el.querySelector('a').innerText;
const serviceId = el.querySelector('a').getAttribute('data-testid');
const href = el.querySelector('a').getAttribute('href');
output += `${serviceLabel},${serviceId},${serviceId},${href}\n`;
});
console.log(output);
@davidshimjs
davidshimjs / get.js
Last active February 11, 2018 09:01
get.js로 메모 목록을 가져와서 공유하고, set.js로 공유받은 메모 목록을 설정하세요
$.ajax({
url: '/service/api/auth/memo/list',
dataType: 'json',
method: 'GET',
success: function (data) {
const map = {};
const output = [];
data.memoList.forEach(v => {
map[v.note] = map[v.note] || 0;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script>
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Scratchcard=e()}}(function(){return function e(t,n,r){function i(s,u){if(!n[s]){if(!t[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";function r(e){this.options=i({},e,o)}var i=e("lodash.defaults");t.exports=n=r;var o={color:"silver",thick
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.3/moment.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
* {
@davidshimjs
davidshimjs / debugger
Created October 20, 2014 08:32
Making schedule table about HTML5DevConf 2014 conference
/**
* 1. You should run this script on a modern browser like a chrome debugger.
* 2. Insert JSON strings on debugger to the `rawData` in `googleApp` script below.
*/
console.clear();
(function () {
var lists = {
day1: [],
day2: []
@davidshimjs
davidshimjs / gist:7150164
Created October 25, 2013 06:18
Sublime Text 2 shortcut on Mac OS X for Eclipse users
[
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["super+alt+down"], "command": "duplicate_line" },
{ "keys": ["super+shift+s"], "command": "save_all" },
{ "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["shift+super+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["super+space"], "command": "auto_complete" },
{ "keys": ["super+g"], "command": "find_under_expand" },