Skip to content

Instantly share code, notes, and snippets.

View japboy's full-sized avatar
🏠
WFH

Yu Inao japboy

🏠
WFH
View GitHub Profile
@japboy
japboy / jade-ftw.md
Last active October 23, 2023 11:18
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

@japboy
japboy / mesh2geojson.js
Created April 22, 2015 14:43
地域メッシュの GeoJSON 変換
'use strict';
var fs = require('fs');
var path = require('path');
var _ = require('underscore');
var concat = require('concat-stream');
var csv = require('csv');
var GeoJSON = require('geojson');
var iconv = require('iconv');
@japboy
japboy / SketchSystems.spec
Last active November 25, 2022 14:00
metacognition
metacognition
mindless
meditate -> mindful
do bodyscan -> mindful
do journaling -> mindful
mindful
meditate -> mindful
do bodyscan -> mindful
do journaling -> mindful
@japboy
japboy / post-receive
Created November 21, 2012 00:40
Useful Git hook script snippets that I can easily forget :P
#!/bin/bash
# Apply administrative privilege to a command line user
# 1) Add `git` user to sudoers:
# sudo /usr/sbin/visudo
# 2) Give permissions to `git` user:
# git ALL=NOPASSWD: /usr/local/bin/curlftpfs, /bin/mount, /bin/umount
# 3) Disable to prevent `sudo` w/o tty:
# Defaults requiretty # Comment out this
@japboy
japboy / .babelrc
Last active April 15, 2022 12:19
webpack DllPlugin + HappyPack sample
{
"presets": [
"stage-2",
[
"env", {
"modules": false,
"targets": {
"browsers": [
"Chrome >= 50",
"ChromeAndroid >= 50",
@japboy
japboy / api-datetime.py
Created December 10, 2009 10:00
some python study coding snippets
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python Date & Time
Usage of datetime library (INCOMPLETE)
"""
from datetime import datetime, timedelta
dt = datetime.datetime(2009,1,1,23,59)
@japboy
japboy / index.html
Last active July 10, 2021 13:37
Client-side error logging with Google Analytics
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Logging Test for Google Analytics</title>
<style>
button {
position: relative;
@japboy
japboy / index.html
Last active July 10, 2021 13:37
Adjustment Test of Google Maps API
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Adjustment Test of Google Maps API</title>
<style>
#toggle {
position: absolute;
z-index: 1;
@japboy
japboy / promises.es5.js
Last active July 10, 2021 13:37
My useful curried functions returns Promises
'use strict';
var _ = require('underscore');
var $ = require('jquery');
var global = global || window, doc = global.document, nav = global.navigator;
/**
* Function returns curried function
@japboy
japboy / cookie.js
Last active July 10, 2021 13:37
My fundamental cookie manager