Skip to content

Instantly share code, notes, and snippets.

View Rokt33r's full-sized avatar
🧨
BOOM!

Junyoung Choi Rokt33r

🧨
BOOM!
View GitHub Profile
@Rokt33r
Rokt33r / readme
Last active January 8, 2024 11:39
HTML XSS test
SOURCE: http://htmlpurifier.org/live/smoketests/xssAttacks.php
@Rokt33r
Rokt33r / lang.json
Created May 15, 2019 01:13
lang.json
[
"1C Enterprise",
"ABAP",
"ABNF",
"AGS Script",
"AMPL",
"ANTLR",
"API Blueprint",
"APL",
"ASN.1",
@Rokt33r
Rokt33r / 2.md
Created November 28, 2015 01:14
Use NPM

Use NPM

ElectronはNodeとほとんど差がないので、NPMで入れたパッケージも使える。 今回は簡単な画像編集ができるアプリを作ってみる。

1. 設置

npm init
@Rokt33r
Rokt33r / readme.md
Last active August 19, 2017 14:49
Map performance comparison
Get Nth
Native Object(10) : 22670660.07 +/- 2.14% op/s
Native Map(10) : 22534378.75 +/- 0.93% op/s
Hashtrie(10) : 13052298.01 +/- 0.99% op/s
Hamt(10) : 13362491.37 +/- 0.78% op/s
Hamt+(10) : 13020559.46 +/- 0.73% op/s
Mori(10) : 9405100.99 +/- 2.80% op/s
Immutable(10) : 12250139.06 +/- 2.92% op/s
Native Object(100) : 31386478.91 +/- 1.57% op/s
Native Map(100) : 17021320.51 +/- 1.36% op/s
@Rokt33r
Rokt33r / run-twice.spec.ts
Last active July 3, 2017 02:22
Async Saga test
import {
createSaga
} from '../lib'
import {
createStore,
applyMiddleware,
} from 'redux'
import {
PureAction,
createActionCreator,
@Rokt33r
Rokt33r / props-filter.js
Created May 27, 2015 17:31
Angular propsFilter
app.filter('propsFilter', function() {
return function(items, props) {
var out = [];
if (angular.isArray(items)) {
items.forEach(function(item) {
var itemMatches = false;
var keys = Object.keys(props);
for (var i = 0; i < keys.length; i++) {
@Rokt33r
Rokt33r / 3.md
Created November 28, 2015 01:15
Electron x React x Webpack

Electron x React x Webpack

0. Synopsis

今回は次のような問題を解決してみる。

  1. ES6が使いたい
  2. よりアプリらしく作りたい
  3. 変更するとRefresh押すのが面倒いい
@Rokt33r
Rokt33r / broken-route-switch.jsx
Last active June 12, 2017 14:45
ReactRouter is BROKEN!!
import React from 'react'
import styled from 'styled-components'
import {
Switch,
Route,
Redirect
} from 'react-router-dom'
import RepoListPage from './pages/repos/list/ReposListPage'
import ReposNewPage from './pages/repos/new/ReposNewPage'
import PreferencesPage from './pages/preferences/PreferencesPage.js'
@Rokt33r
Rokt33r / linkDir.js
Created May 7, 2017 09:45
Link Directory
const fs = require('fs')
const path = require('path')
const moduleMap = [
'base'
]
function link (modulePath) {
const sourcePath = path.join(__dirname, '..', modulePath)
const targetPath = path.join(__dirname, '../node_modules', modulePath)
@Rokt33r
Rokt33r / IssueCommentContainer.jsx
Last active May 7, 2017 07:52
Saga in Component
import React from 'react'
import CommentList from './CommentList'
import api from '../../lib/api'
import { bindActionCreators } from 'redux'
import TechReactor from '../shared/TechReactor'
const statusPrefix = 'IssueCommentContainer'
// Action types
const REQUEST_COMMENT_CREATE = `${statusPrefix}/REQUEST_COMMENT_CREATE`