This file contains hidden or 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
| # coding:utf-8 | |
| import random | |
| meals = [ | |
| 'νμ§λ!', | |
| 'κ³±μ°½', | |
| '(λ§μμ΄ λ§κ°μ€)', | |
| '(μλ©΄μ€)' | |
| ] | |
| class Ayeong(): | |
| def __init__(self, name): |
This file contains hidden or 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
| /* ================================================================================================ | |
| KEYFRAMES | |
| ================================================================================================ */ | |
| @keyframes shake { | |
| 2% { | |
| transform: translate(-0.5px, -0.5px) rotate(0.5deg); | |
| } | |
| 4% { | |
| transform: translate(2.5px, -1.5px) rotate(-0.5deg); |
This file contains hidden or 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 _map(list, fn) { | |
| var eached = []; | |
| for (var i = 0; i < list.length; i++) { | |
| eached.push(fn(list[i])); | |
| } | |
| return eached; | |
| } |
This file contains hidden or 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
| #include <iostream> | |
| #include <numeric> | |
| #include <cmath> | |
| using namespace std; | |
| #define MAX 1000 | |
| int a[MAX], MONEY; |
This file contains hidden or 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
| //λλκ²λ μ΄ ν€λνμΌμ stdio.hλ§μ ν¬ν¨ν©λλ€ ν€λβ | |
| //μ μ¬μ©ν΄μ£ΌμκΈΈ λ°λλλ€ ν€λβ | |
| #pragma once | |
| #include <stdio.h> | |
| #define ν€λβ ; | |
| #define ν¬ν¨νλ€ include | |
| #define μ μ int | |
| #define λ°μλ return |
This file contains hidden or 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
| import request from 'request' | |
| const student_no = 2018123456 | |
| const student_pw = 'PASSWORD' | |
| const BaseURL = 'https://dreamy.jejunu.ac.kr' | |
| const rejectUnauthorized = false | |
| const headers = { | |
| 'User-Agent': | |
| 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0', |
This file contains hidden or 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
| import React, { FormEvent } from 'react' | |
| const App: React.FC = () => { | |
| const [flag, setFlag] = useState<boolean>() | |
| const onSubmit = async (event: FormEvent) => { | |
| event.preventDefault() | |
| // @ts-ignore | |
| const { value } = event.target.mailid // mailid is 'any' type | |
| setFlag(await submitID(value)) | |
| } | |
| return ( |
This file contains hidden or 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
| interface FormElements extends HTMLFormElement { | |
| mailid: HTMLInputElement | |
| } | |
| interface FormTarget extends FormEvent<HTMLFormElement> { | |
| target: FormElements | |
| } | |
| const App: React.FC = () => { | |
| const [flag, setFlag] = useState<boolean>() |
This file contains hidden or 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
| const INTERVAL = 250 | |
| const x = document.getElementById('cafe_main').contentWindow.document.getElementById('innerNetwork').contentWindow | |
| (function next(interval) { | |
| if (x.document.querySelector('span.m-tcol-c.list-count') === null || x.document.querySelector('td.m-tcol-c').firstChild.data === "μμ±νμ λκΈμ΄ μμ΅λλ€.") return | |
| x.confirm = () => true | |
| if (!x.document.getElementById('selectAll').checked) | |
| x.document.getElementById('selectAll').click() |
This file contains hidden or 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
| const isEqual = <T extends number | string>(first: T[], second: T[]) => | |
| first.length === second.length && | |
| first.findIndex((item, index) => item !== second[index]) === -1; | |
| const isEqualVariableArray = <T>(...arrays: T[][]) => arrays.slice(0, arrays.length - 1).findIndex((array, index) => !isEqual<T>(array, arrays[index+1])) | |
| console.assert(isEqualVariableArray<number>([1, 2], [1, 2], [1, 2])) |
OlderNewer