Skip to content

Instantly share code, notes, and snippets.

View Jack2's full-sized avatar

JAEKI KIM Jack2

View GitHub Profile
@Jack2
Jack2 / STL_vector_ex.cpp
Created November 27, 2012 15:32
[C++]STL_vector_example
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
vector<string> VS;
@Jack2
Jack2 / STL_list_ex.cpp
Created November 27, 2012 15:43
[C++]STL_list_example
#include <iostream>
#include <list>
using namespace std;
int main()
{
list<int> JL;
JL.push_back(100);
JL.push_front(999);
@Jack2
Jack2 / STL_deque_ex.cpp
Created November 28, 2012 17:15
[C++]STL_deque_example
#include <iostream>
#include <deque>
using namespace std;
int main()
{
deque<int> JacksDeque;
int soo;
@Jack2
Jack2 / connect_ex.cpp
Created December 11, 2012 17:39
[C++]connect_example
#ifndef UNICODE
#define UNICODE
#endif
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>
<?xml version=”1.0″ encoding=”utf-8″?>
<manifest
xmlns:android=”http://schemas.android.com/apk/res/android”
android:versionCode=”4″
android:versionName=”1.3″
package=”com.button.phone” >
<uses-sdk
android:minSdkVersion=”6″ >
</uses-sdk>
<uses-permission
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <sstream>
using namespace std;
int main()
{
#-*- coding: utf-8 -*-
import urllib
import csv
from bs4 import BeautifulSoup
#----------------------------------------------------------------------
## save all links from URL
def grap_type_from_url(url,tag1,tag2):
soup = BeautifulSoup(urllib.urlopen(url))
links=soup.findAll(tag1)
x=[]
@Jack2
Jack2 / jpg_downloader.py
Created March 26, 2015 09:21
Amecenter 1503 Downloader by Jack2
import urllib
from bs4 import BeautifulSoup
## Print all JPGs from a Site
def down_from_site(type,url):
soup = BeautifulSoup(urllib.urlopen(url))
#EDIT - <a> tag + <class> name tag
links=soup.findAll('a')
#print links
x=[]
@Jack2
Jack2 / FlashDumper.c
Last active August 29, 2015 14:18
플래시 메모리 펌웨어 덤프
/*
* FlashDumper.c
*
* Created: 2015-04-04 오후 5:17:30
* Author: Jaeki
*/
#define F_CPU 16000000UL
#include <avr/io.h>
#include <util/delay.h>