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 / 2.md
Created November 28, 2015 01:14
Use NPM

Use NPM

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

1. 設置

npm init
@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 / readme
Last active February 11, 2025 16:47
HTML XSS test
SOURCE: http://htmlpurifier.org/live/smoketests/xssAttacks.php
@Rokt33r
Rokt33r / config.json
Created April 11, 2016 01:35
sublime config
{
"always_show_minimap_viewport": true,
"binary_file_patterns":
[
"node_modules/*",
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
@Rokt33r
Rokt33r / find-by-key.js
Last active August 26, 2016 11:13
find-by-key
var crypto = require('crypto')
function keygen () {
return crypto.randomBytes(6).toString('hex')
}
var _ = require('lodash')
var arr = []
for (var i = 0; i < 1000; i++) {
arr.push({
key: keygen(),
index: i
@Rokt33r
Rokt33r / .js
Created September 25, 2016 14:24
got download pipe
'use strict'
const got = require('got')
const fs = require('fs')
const path = require('path')
let beta = fs.readFileSync(path.join(__dirname, 'beta.json'))
beta = JSON.parse(beta)
let data = []
for (let key in beta) {
@Rokt33r
Rokt33r / ast.json
Created February 18, 2017 08:47
Unknown MDAST nodes are not compiled to DIV
{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Inline math! ",
"position": {
@Rokt33r
Rokt33r / katex-fix.css
Created February 21, 2017 19:30
KaTeX temporary fix
/* Temporary fix for \frac and subscript */
.katex .frac-line {
top: 0.85em;
position: relative;
}
.katex .reset-textstyle.scriptstyle {
top: 0.4em;
position: relative;
}
@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`