Skip to content

Instantly share code, notes, and snippets.

View mjy9088's full-sized avatar

Juyeong Maing mjy9088

  • 대한민국
  • 14:17 (UTC +09:00)
View GitHub Profile
@mjy9088
mjy9088 / README.md
Last active December 30, 2021 06:27
테스트

테스트

테스트용...

테스트 결과

  • README.md를 먼저 만들었을 때 README.md, index.html이 있을 때 어떤 파일이 대표로 보일까 - 결과: README.md
@mjy9088
mjy9088 / bandArticleRemover.py
Last active July 3, 2020 07:43
네이버 밴드 글 삭제 매크로?
# -*- encoding: utf-8 -*-
import selenium
from selenium import webdriver
from time import sleep
driver = webdriver.Chrome('(웹드라이버 경로)')
driver.implicitly_wait(3)
driver.get('https://band.us/band/(밴드 ID)')
@mjy9088
mjy9088 / ssha-to-new.js
Last active June 28, 2019 06:16
Migrating password LDAP SSHA hash to new one
var readline = require('readline');
var crypto = require('crypto');
var kdf2 = require('pbkdf2-password');
var hasher = kdf2({digest: 'sha256', iterations: 1000, keyLength: 64});
var r = readline.createInterface({
input: process.stdin,
output: process.stdout
});
@mjy9088
mjy9088 / main.c
Created October 3, 2019 18:07
int 소인수분해
#include <stdio.h>
#include <stdint.h>
#include "primes.h"
int main()
{
puts("소인수분해할 int 범위의 수를 입력하세요.");
int64_t input;
struct
@mjy9088
mjy9088 / main.cpp
Last active May 22, 2021 10:13
Direct3D Tutorial
//-----------------------------------------------------------------------------
// File: Meshes.cpp
//
// Desc: For advanced geometry, most apps will prefer to load pre-authored
// meshes from a file. Fortunately, when using meshes, D3DX does most of
// the work for this, parsing a geometry file and creating vertx buffers
// (and index buffers) for us. This tutorial shows how to use a D3DXMESH
// object, including loading it from a file and rendering it. One thing
// D3DX does not handle for us is the materials and textures for a mesh,
// so note that we have to handle those manually.
@mjy9088
mjy9088 / infinite-scroll.js
Last active December 30, 2021 01:31
remove invisible elements from DOM tree
var InfiniteScroll = window.InfiniteScroll = (function () {
var instanceKey = window.Symbol ? Symbol('InfiniteScroll') : '__IE_POLYFILL__SYMBOL__INFINITE_SCROLL';
function result(options) {
if (!(this instanceof result)) {
throw new Error('InfiniteScroll must called with new operator and options object');
}
this.init(options);
}
Object.defineProperties(result.prototype, {
init: {
@mjy9088
mjy9088 / input-autocomplete.js
Last active December 30, 2021 06:48
Input autocompletion
var InputAutocomplete = window.InputAutocomplete = (function () {
function result(options) {
if (!(this instanceof result)) throw new Error('InputAutocomplete is a constructor');
if (!options) throw new Error('InputAutocomplete requires options to be provided');
this.inputElement = options.inputElement;
this.show = options.show;
this.hide = options.hide;
this.setFailed = options.failed;
this.setLoading = options.loading;
this.setPlaceholder = options.placeholder;
@mjy9088
mjy9088 / main.sh
Created February 10, 2022 01:49
To test dts react...
git clone --sparse --filter=blob:none --depth=1 -b $BRANCH_NAME --single-branch $REPOSITORY_URL dts-react
cd dts-react
npm i
npm i csstype
git sparse-checkout add prop-types
git sparse-checkout add scheduler/tracing
git sparse-checkout add react-dom
git sparse-checkout add types/react-addons-create-fragment
git sparse-checkout add types/react-addons-linked-state-mixin
git sparse-checkout add types/react-addons-pure-render-mixin
@mjy9088
mjy9088 / Dockerfile
Last active March 4, 2022 01:34
Janus test dockerfile - currently WIP
FROM ubuntu:18.04
# command: docker build -t janus-test:0.0.2 .
# install dependencies
RUN apt update && apt install -y \
libjansson-dev \
libconfig-dev \
libnice-dev \
@mjy9088
mjy9088 / init.sh
Last active February 26, 2023 15:40
Development environment setup script for 42schools
#!/bin/bash
# link cache directories to goinfre
TARGET=(
"Caches"
"ApplicationSupport/Code/Cache"
"ApplicationSupport/Code/CachedData"
"ApplicationSupport/Code/CachedExtensions"