Skip to content

Instantly share code, notes, and snippets.

View Qwaz's full-sized avatar

Yechan Bae Qwaz

View GitHub Profile
# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX
#
# WIP research. (This was edited to add more info after someone posted it to
# Hacker News. Click "Revisions" to see full changes.)
#
# Copyright (c) 2020 dougallj
# Based on Python port of VMX intrinsics plugin:
# Copyright (c) 2019 w4kfu - Synacktiv

Promise, async / await

안녕하세요, 이번 아는만큼 세미나에서는 블로킹과 논블로킹의 차이, 그리고 논블로킹의 콜백 지옥에 대해서 알아본 뒤, 콜백 지옥을 탈출할 수 있도록 돕는 Promise 객체와 async / await 문법을 살펴보겠습니다.

블로킹, 논블로킹

function blocking_wait(sec, callback) {
    var start_time = +new Date;
    while (+new Date < (start_time + sec * 1000));
    callback();
}
@dittos
dittos / fbautoaccept.js
Last active May 18, 2017 15:20
Accept Facebook group join request automatically.
/**
* Install PhantomJS to run: http://phantomjs.org/
* Needs jQuery 2.0.3 in the same directory (Name it as: jquery-2.0.3.min.js)
*/
var webpage = require('webpage');
config = {
email: '',
pass: '',