Skip to content

Instantly share code, notes, and snippets.

View KagamiChan's full-sized avatar
❤️
Pray for KyoAni

かがみ KagamiChan

❤️
Pray for KyoAni
View GitHub Profile
@KagamiChan
KagamiChan / lockon.avs
Last active July 30, 2016 18:11
generate animated GIF with ffmpeg and avisynth
LWLibavVideoSource("O:\HJNTF\[Ohys-Raws] Rewrite - 05 (BS11 1280x720 x264 AAC).mp4")
trim(32777,32806)
LanczosResize(424,240)
@KagamiChan
KagamiChan / font.js
Last active October 5, 2016 19:37
jekyll fontmin plugin prototype
var Fontmin = require('fontmin');
var fs = require('fs')
var _ = require('lodash')
var srcPath = './SourceHanSansSC-Regular.ttf'; // 字体源文件
var destPath = 'assets/webfont'; // 输出路径
// var text = '中国'
var text
data = fs.readFileSync('./content.txt','utf8')
text = _.filter(data, function(e1,i,arr){return arr.indexOf(e1) === i}).join('')+"(),。“‘”’!?《》……·—"
@KagamiChan
KagamiChan / item_improvement.json
Last active October 20, 2016 19:03
Improvemnt json prototype
[
{
"id": 25,
"type": "水上偵察機",
"icon": 10,
"name": "零式水上偵察機",
"improvement": [
{
"upgrade": {
"level": 0,
{
"equipDataTb":{
"136":{
"类别":[
6,
17,
28,
23
],
"属性":{
@KagamiChan
KagamiChan / download_pepflash.sh
Last active November 27, 2017 03:23
download pepflash libraries
#!/bin/bash
v=27.0.0.187
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$v/flash_player_ppapi_linux.x86_64.tar.gz
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$v/flash_player_ppapi_linux.i386.tar.gz
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$v/install_flash_player_ppapi.exe
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$v/install_flash_player_osx_ppapi.dmg
@KagamiChan
KagamiChan / run.bat
Created March 17, 2017 17:17
creating install spinner gif
ffmpeg.exe -framerate 2 -i poi_loading_thversion_%d.png output_th.gif
// code modified from https://github.com/petkaantonov/bluebird/issues/196
import http from 'http'
import https from 'https'
import Promise from 'bluebird'
import streamBuffers from 'stream-buffers'
const promiseRequest = Promise.method(options => new Promise((resolve, reject) => {
const scheme = options.scheme || 'http'
let handler
@KagamiChan
KagamiChan / vscode.json
Created April 14, 2017 08:42
configs for editors
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 16,
"editor.minimap.enabled": true,
"editor.minimap.renderCharacters": false,
"vsicons.projectDetection.disableDetect": true,
"javascript.validate.enable": false,
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.trimAutoWhitespace": true,
@KagamiChan
KagamiChan / processing.log
Created April 18, 2017 15:28
record processing result
converted 7344 recipes
unique recipes 1365
stage count not equal 101 [ 6, 5, 4 ]
stage count not equal 102 [ 3, 2 ]
stage count not equal 103 [ 3, 1 ]
stage count not equal 104 [ 5, 3, 2 ]
stage count not equal 105 [ 4, 2, 1 ]
stage count not equal 110 [ 5, 4 ]
stage count not equal 111 [ 6, 5 ]
stage count not equal 112 [ 3, 1, 1 ]
@KagamiChan
KagamiChan / Readme.md
Created May 17, 2017 15:33 — forked from mxstbr/Readme.md
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':