Skip to content

Instantly share code, notes, and snippets.

👷
Working from home

JIMMY ムン (MOON) ragingwind

👷
Working from home
Block or report user

Report or block ragingwind

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flipclock.html
<!--
* Copyright (c) 2010 devnight.net. All rights reserved. Use of this
* source code is governed by a MIT license that can be found in the
* LICENSE file.
-->
<!DOCTYPE html>
<html>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<head>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
@ragingwind
ragingwind / nginx.conf
Created Aug 5, 2019
Redirect old-classic browser including IE 11
View nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
map $http_user_agent $outdated {
default 0;
"~MSIE [1-10]\." 1;
@ragingwind
ragingwind / shorten.py
Last active Jul 7, 2018
Shorten URL with markdown for Alfred. Added title to origin https://github.com/hzlzh/Alfred-Workflows
View shorten.py
'''
Shorten URL v1.5
Github: https://github.com/hzlzh/Alfred-Workflows
Author: hzlzh (hzlzh.dev@gmail.com)
Twitter: @hzlzh
Blog: https://zlz.im/Alfred-Workflows/
'''
# encoding: utf-8
View vscode_custom.css
.part.titlebar {
display: none !important;
}
.monaco-workbench {
background-color: rgba(0, 0, 0, 0);
}
@ragingwind
ragingwind / won-as-backquote.sh
Last active Apr 14, 2018
Backquote binding for won key
View won-as-backquote.sh
mkdir -p ~/Library/KeyBindings &&
echo '{ "₩" = ("insertText:", "`"); }' >> ~/Library/KeyBindings/DefaultkeyBinding.dict
@ragingwind
ragingwind / launch.json
Created Apr 9, 2018
Debugging electron app with vscode
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
"protocol": "inspector",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"runtimeArgs": [
@ragingwind
ragingwind / run.js
Last active Apr 9, 2018
running code block by wrapping module
View run.js
const m = require('module')
const res = vm.runInThisContext(m.wrap(code))(
exports,
require,
module,
__filename,
__dirname
)
@ragingwind
ragingwind / console.log.js
Created Mar 2, 2018
Logger with console.log and call stack in strict mode
View console.log.js
const log = console.log
console.log = function logIt() {
var stack = new Error().stack,
callee = stack.split('\n')[3].slice(7),
tag = '[LOG]';
if (arguments.length > 0) {
tag = Array.prototype.slice.call(arguments, 0)[0]
}
log.call(this, tag, callee)
arguments.length > 1 && log.apply(this, arguments)
View shell-i-used-at-least-once.sh
# find directories in the path
find . -maxdepth 10 -type d
@ragingwind
ragingwind / package.json
Created Jul 7, 2017
tiddlywiki package.json
View package.json
{
"name": "tiddlywiki",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"tiddlywiki": "^5.1.14"
},
"scripts": {
"build": "tiddlywiki wiki --init server",
You can’t perform that action at this time.