This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function uniqify(target){ | |
var cleaned = target.replace(/(^[ \t]*\n)/gm, ""); | |
var cleanedArr = cleaned.split('\n'); | |
var uniqued = cleanedArr.filter(function(item, pos) { | |
return cleanedArr.indexOf(item) == pos; | |
}); | |
return uniqued.join('\n'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto_register = new Object(); | |
auto_register.add_member = function(member_id, group_id, ignore, callback) { | |
x = new XMLHttpRequest(); | |
x.onreadystatechange = function() { | |
if (x.readyState == 4) { | |
if (x.status == 200) { | |
if (callback) | |
callback(member_id, group_id); | |
console.log('success', member_id); | |
} else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
body{ | |
background-image: url("https://source.unsplash.com/collection/958757/1600x900"); | |
background-repeat: no-repeat; | |
background-size: cover; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArkut5UC/R8V+lxryaLb6 | |
Cf4qxUarRqBTl8JrMOXveB6ta9/n54bHfNCciILE0hAG0d4GN4oI6votS9YOP9aT | |
DBpDQpPy6HHR+o20ti91Oh/HZbwso+gUkzTycRYsReumCWcii6iwl7bdqaAyg7+S | |
CaPDcfEEt4geBizfLaaaJIHKY4ImCdemEB6jKFXRE5xsb7NCCLqS7wq01J2fau4w | |
JkyFxmhd9Ira8GO465tb0RZ61z2scwWc7gnRLrVOaC5LxjVoKYXXxJLS9rRBhA37 | |
2vuzW/YcNL4bmxD9x/E6IpI6FMToa+V3LtgArc2GyLSD2W4hn5DjqdwcPBecEnLY | |
AwIDAQAB | |
-----END PUBLIC KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shuffle(a) { | |
var j, x, i; | |
for (i = a.length; i; i--) { | |
j = Math.floor(Math.random() * i); | |
x = a[i - 1]; | |
a[i - 1] = a[j]; | |
a[j] = x; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shuffle(a) { | |
var j, x, i; | |
for (i = a.length; i; i--) { | |
j = Math.floor(Math.random() * i); | |
x = a[i - 1]; | |
a[i - 1] = a[j]; | |
a[j] = x; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var times = document.querySelectorAll('.pl-video .pl-video-time .timestamp span'); | |
var duration = 0; | |
for(var i=0; i<times.length; i++){ | |
var t = times[i]; | |
t = t.innerText; | |
t = t.split(':') | |
min = t[0]; | |
sec = t[1]; | |
duration = duration + parseInt(sec) + parseInt(min)*60 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
생활코딩 페이스북 그룹은 코딩을 처음 시작하는 분들이 서로를 돕기 위해서 시작된 커뮤니티입니다. 코딩이라는 범위 안에서 정보와 의견을 나누는 공간입니다. 활동을 시작하기 전에 가이드를 읽어주세요. https://www.facebook.com/notes/생활코딩/생활코딩-페이스북-그룹-커뮤니티-정책-rfc/1797775593596302/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
그룹의 목적 자체가 프로그래밍의 시작을 돕기 위함에서 출발했기 때문에 아무리 쉬운 질문도 허용됩니다. 처음 시작하는 입장에서는 무엇을 모르는지 알지 못하기 때문에 검색조차 쉽지 않습니다. 도움이 되는 정보들이 대부분 영어라는 것도 큰 어려움이겠지요. 답변을 주시는 분은 이 점을 생각해주셨으면 합니다. 검색어를 추천해주시는 것도 질문자에게는 정말 큰 힘이 됩니다. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
우리 그룹은 프로그래밍의 시작을 돕기 위해서 출발했기 때문에 쉬운 질문도 허용됩니다. 처음 시작하는 입장에서는 무엇을 모르는지 알지 못하기 때문에 검색조차 쉽지 않습니다. 도움이 되는 정보들이 대부분 영어라는 것도 큰 장벽입니다. 검색어 추천이나 검색방법을 알려주시면 질문자에게 정말 큰 도움이 됩니다. |
OlderNewer