Skip to content

Instantly share code, notes, and snippets.

@ox1111
ox1111 / helloworld.cpp
Created October 18, 2017 01:16
windows 콘솔응요프로그램 ][ hello world 찍기
// test.cpp: 콘솔 응용 프로그램의 진입점을 정의합니다.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
@ox1111
ox1111 / install.sh
Created October 18, 2017 02:39
install
sudo apt-get install openssh-server g++ gdb gdbserver
@ox1111
ox1111 / dis.asm
Created October 18, 2017 03:07
dia
main():
0x0000000000400516 push %rbp
0x0000000000400517 mov %rsp,%rbp
0x000000000040051a mov $0x4005b4,%edi
0x000000000040051f callq 0x400400
0x0000000000400524 mov $0x0,%eax
0x0000000000400529 pop %rbp
0x000000000040052a retq
0x000000000040052b nopl 0x0(%rax,%rax,1)
예전에 은행에서 일했었는데.
집중력이 필요한 업무이지만, 사무실 환경이 산만했다.
또 기존 인원과 신규 인원의 배타적인 느낌과 머리 염색을 못 했던 아쉬움과
그 은행만의 문화가 종합적으로 다가와 적응하는 시간이 더 걸렸다.
뭔가 항상 자유롭다가 너무 불편한 느낌.
그래서인지 나만의 시간을 많이 가지려고 한 듯했다.
연구할 수 있는 모든 장비가 회사에 있어서 회사에서 거의 노숙했다.
코넷, 하이텔 망의 닥스 먹스 장비,3com 장비들 ..
FDSU부터 광케이블,대형 라우터 등.
하도 연습을 많이 해서 KT 네트워크망 예전 버전이 손에 익었다.
그렇게 미친듯해서 그런지
혜화 부근에 가면 옛 향수에 빠져든다.
#include <iostream>
using namespace std;
// Pass by value
constexpr float exp(float x, int n)
{
return n == 0 ? 1 :
n % 2 == 0 ? exp(x * x, n / 2) :
exp(x * x, (n - 1) / 2) * x;
@ox1111
ox1111 / auto
Created December 3, 2018 03:50
auto keyword
// cl.exe /analyze /EHsc /W4
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
int count = 10;
@ox1111
ox1111 / like class
Created February 8, 2019 06:31
javascript class 처럼 상속 받기
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<script>
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
@ox1111
ox1111 / simple test1
Created February 12, 2019 02:30
aws lambda 테스트 ][ nodejs 간단한예제1
exports.handler = ( event , context, callback ) => {
callback( null , 'Hello World blackfalcon...');
}
exports.handler = async( event ) => {
const response = {
statusCode: 200,
body: JSON.stringify('Hello from Lambda!'),
};
return response;
}