Skip to content

Instantly share code, notes, and snippets.

View realsung's full-sized avatar
😮‍💨
I may be slow to respond.

SungJun Park realsung

😮‍💨
I may be slow to respond.
View GitHub Profile
@startuml
!include <cloudinsight/docker>
!include <cloudinsight/redis>
!include <logos/prisma>
!include <logos/vercel>
!include <logos/vercel-icon>
!include <logos/python>
!include <logos/nextjs>
!include <aws/Compute/AmazonEC2/AmazonEC2>
@realsung
realsung / matlab_project_with_crime.m
Last active November 29, 2023 18:12
범죄, 온도, 강수량 분석
% 데이터 불러오기
% 1967~2013
crime = readmatrix('/MATLAB Drive/Project/범죄+발생현황_20231126205945.csv');
temp = readmatrix('/MATLAB Drive/Project/서울시_월별_기온_1967_2013.csv');
precipitation = readmatrix('/MATLAB Drive/Project/서울시_월별_강수량_1967_2013.csv');
% 데이터 추출
crimeNum = crime(:, 2);
tempNum = temp(:, 3);
precipitationNum = precipitation(:, 3);
#include <stdio.h>
#include <stdlib.h>
typedef struct LinkNode {
int data;
struct ListNode* link;
}ListNode;
ListNode* insert_first(ListNode* head, int item) {
if (head == NULL) {
head = (ListNode*)malloc(sizeof(ListNode));
#include <iostream>
#include <list>
using namespace std;
int main() {
list<int> l;
l.push_back(1); l.push_back(2); // 맨 뒤 원소 삽입
l.push_back(3); l.push_back(4);
l.pop_back(); // 맨 뒤 원소 제거
l.push_front(0); // 맨 앞 원소 삽입
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
typedef struct Node {
uint64_t data;
struct Node* next;
}Node;
void addNode(uint64_t data, Node* ptr) {
from pwn import *
import base64
import binascii
import os
import wave
import pylab
import sys
#import pytesseract
from termios import tcflush, TCIFLUSH
from pwn import *
from ast import literal_eval
p = remote('218.158.141.182',52387)
for i in range(100):
payload=""
print p.recvuntil('Step : ' + str(i+1) + "\n\n")
text = p.recvline()
text = list(text)
from z3 import *
from pwn import *
p = remote('218.158.141.199',24763)
s = Solver()
x = [Int('x%i'%i)for i in range(12,130)]
y = [Int('y%i'%i)for i in range(12,130)]
x1 = [Int('x1%i'%i)for i in range(12,130)]
y1 = [Int('y1%i'%i)for i in range(12,130)]
x2 = [Int('x2%i'%i)for i in range(12,130)]
import hashlib
import re
import string
ALLOWED_CHARACTERS = string.hexdigits
NUMBER_OF_CHARACTERS = len(ALLOWED_CHARACTERS)
def characterToIndex(char):
return ALLOWED_CHARACTERS.index(char)