Skip to content

Instantly share code, notes, and snippets.

View xnuk's full-sized avatar
🏳️‍🌈
pride

즈눅 xnuk

🏳️‍🌈
pride
View GitHub Profile
(function(){
var a=[ "`1234567890-=\\".split(''),
"ㅂㅈㄷㄱㅅㅛㅕㅑㅐㅔ[]".split(''),
"ㅁㄴㅇㄹㅎㅗㅓㅏㅣ;'".split(''),
"ㅋㅌㅊㅍㅠㅜㅡ,./".split('')]
var c={}
//1st line
/*
□ⓐ■ⓑ□1
.global-nav-inner{background-color:rgba(0,0,0,.5)}
.nav .active a{color:#eee}
.nav>li{color:#999}
.message{background-color:rgba(37,37,37,.5)}
.message .message-text{color:#eee}
.message{padding:10px 20px;border-radius:6px}
#message-drawer{margin-top:5px}
.permalink-tweet p, .permalink-tweet p b{font-size:16pt !important;line-height:1.4}
.ProfileTweet-text{font-size:12pt !important;line-height:1.2 !important}
.modal-overlay{opacity:.3}
for(var i=1;i<=16;i++)$.get("/pc2/pc2_"+((i<10)?("0"+i):""+i)+".htm",function(data){$("html").html(data);$("a:not([href*='index.html'])").each(function(i,v){console.log(v.href.replace(/\.htm$/,".png"))})})
(function(){var i=1000;while(i --> 0)document.write("그래요 안 그래요 "+(function(){var s="";var i=Math.floor(Math.random()*100);while(i --> 0)s+="&nbsp;";return s})());})()
window.onscroll=function (e){
var scrollTop = document.documentElement.scrollTop||document.body.scrollTop;
var body = document.body,
html = document.documentElement;
var height = Math.max( body.scrollHeight, body.offsetHeight,
html.clientHeight, html.scrollHeight, html.offsetHeight );
if(scrollTop+screen.height>=height-30)var i=1000;while(i --> 0)document.write("그래요 안 그래요 "+(function(){var s="";var i=Math.floor(Math.random()*100);while(i --> 0)s+="&nbsp;";return s})());
#include<stdio.h>
#include<conio.h>
#define N 5
int main(){
char cname[N]="abcd";
int i;
printf("%d\n", sizeof(cname));
printf("%p %p\n", cname, &cname);
printf("%p %p\n", cname+1, &cname+1);
for(i=0; i<N; i++){
#include <stdio.h>
#define 정수 int
#define 긴정수 long
#define 부호없는 unsigned
#define 실수 float
#define 긴실수 double
#define 문자 char
#define 출력 printf
#define 입력 scanf_s
int main(){
char sID[15], i=13, sum=0;
scanf_s("%s", sID,15);
for(; i>6; i--)sum+=sID[i]-48;
i--;
for(; i>=0; i--)sum+=sID[i]-48;
printf("sum = %d\n", sum);
printf("%2d%c%c년 %d월 %d일 출생, %s자", (sID[7]<51)?19:20, sID[0], sID[1], (sID[2]-48)*10+sID[3]-48, (sID[4]-48)*10+sID[5]-48, (sID[7]%2)?"남":"여");
return 0;
}
var fs=require("fs");
function j(s){
var d=s.length-1;
var b=[];
var c=0
for(var a=d;a>=0;a--){
var t=s.substr(a,1)*3+c //It's javascript lol
b.push(t%10);
c=Math.floor(t/10);
}
#include<stdio.h>
main()
{
int a=10, b=20, t;
int *pa=&a, *pb=&b;
t=*pa;
*pa=*pb;
*pb=t;
printf("%d %d\n", *pa, *pb);
function p3(a){
var i=a.length-1;
var c=0;
for(;i>=0;i--){
var d=a[i];
d=(d<<1)+d+c;
c=Math.floor(d/100000000);
a[i]=d%100000000;
}
if(c>0)a.unshift(c);