Skip to content

Instantly share code, notes, and snippets.

View icepolarizer's full-sized avatar
🎲
Focusing

HS Choi icepolarizer

🎲
Focusing
  • IBM Qiskit Advocate | WSU Pullman
  • (|KR⟩ + |WA⟩) / sqrt(2)
View GitHub Profile
#pragma once
#include<stdio.h>
#define something_that_make_your_brain_explode int
#define something_you_dont_need_because_you_have_fourty_two double
#define mainframe_computer_thats_how_skynet_has_made main
#define herewego return
#define kirat★ ;
#define nothing_nothing_just_nothing_its_just_nothing 0
#define whatisthis "%d"
#define have_some_rest ,
import urllib.request
import os
import time
server_ip=input("Enter the server ip address: ")
while(True):
page=urllib.request.urlopen('http://'+server_ip+'/index.html')
text=page.read().decode("utf8")
if(text=="Everything is OK"):
@icepolarizer
icepolarizer / guide.md
Created November 26, 2016 08:07 — forked from kimdwkimdw/guide.md
Python 2.x Encoding cheatsheet
@icepolarizer
icepolarizer / tagerror.html
Created November 29, 2016 05:19
tag error
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<style type="text/css">
body {
line-height: 175%;
padding: 60px;
}
</style>
@icepolarizer
icepolarizer / sailer.c
Last active January 6, 2017 14:48
장애물 피하기 게임 (카이스트 YOUTH SCIENTIST CAMP 2017 겨울학기(2017 1/3~1/6) 1차 캠프 C언어 레벨1 B반 C조)
//튜터샘 감사합니다 선생님이 많이 도와주셨어요!
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <time.h>
#include <conio.h>
#define BLUE SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_BLUE | FOREGROUND_INTENSITY);
#define GREEN SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_GREEN | FOREGROUND_INTENSITY);
#define AQUA SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY);
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
WiFiServer server(80);
int analogPin = 0;
int speakerPin = 5;
const char* ssid = "SSID";
const char* pass = "PW";
#include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
const int led = 5;
const int button = 4;
int temp = 0;
const char* ssid = "YOUR WIFI SSID";
const char* pass = "YOUR WIFI PW";
process.env["NTBA_FIX_319"] = 1;
const TelegramBot = require('node-telegram-bot-api');
var express = require('express')
, http = require('http')
, app = express()
, server = http.createServer(app);
const PORT = process.env.PORT
#!/usr/bin/env python3
# Dependency: qiskit, pyperclip
def warn (* args, **kwargs):
pass
import warnings
warnings.warn = warn
import argparse
parser = argparse.ArgumentParser()