Skip to content

Instantly share code, notes, and snippets.

Yu Inao japboy

View GitHub Profile
View index.html
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Tinder?</title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<style>
body {
background-color: rgb(255, 255, 255);
View index.html
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>test</title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style>
p {
text-align: center;
}
@japboy
japboy / slack.gs
Last active Feb 9, 2019
google app scripts
View slack.gs
var SLACK_WEBHOOK_URL = 'https://hooks.slack.com/services/XXXXXXXXXX';
function onOpen() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [
{
name: 'Notify to Slack',
functionName: 'notify',
},
];
@japboy
japboy / index.html
Last active Feb 14, 2018
Vue.js デモ
View index.html
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Vue.js デモ</title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<link rel="stylesheet" href="https://fonts.googleapis.com/earlyaccess/sawarabimincho.css">
<style>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Testing WebVR</title>
<meta name="viewport" content="width=device-width, user-scalable=yes">
<link rel="stylesheet" href="https://unpkg.com/normalize.css@7.0.0/normalize.css">
<script defer src="https://unpkg.com/three@0.88.0/build/three.min.js"></script>
<script>
class WebVR {
@japboy
japboy / .babelrc
Last active Sep 27, 2018
webpack DllPlugin + HappyPack sample
View .babelrc
{
"presets": [
"stage-2",
[
"env", {
"modules": false,
"targets": {
"browsers": [
"Chrome >= 50",
"ChromeAndroid >= 50",
@japboy
japboy / bookmarklet.js
Last active Aug 10, 2017
Bookmarklet to copy image path from HTML elements
View bookmarklet.js
javascript:
/**
* WIP
*/
function copyToClipboard(text) {
const input = document.createElement('input');
input.style.position = 'fixed';
input.style.opacity = 0;
View encode.js
/**
* UTF-8 から SJIS に一括変換するスクリプト
*/
const fs = require('fs');
const glob = require('glob');
const iconv = require('iconv');
const pattern = './assets/**/*';
@japboy
japboy / error.coffee
Last active Aug 29, 2015
My subclass for Error class
View error.coffee
'use strict'
global = global or window
###
Subclass for Error
@class
@extends global.Error
@see http://stackoverflow.com/questions/1382107/whats-a-good-way-to-extend-error-in-javascript
@japboy
japboy / fp.js
Created Jul 14, 2015
Study of Functional JavaScript
View fp.js
'use strict';
import _ from 'underscore';
export let splat = (func) => {
let x = (array) => func.apply(null, array);
return x;
};
export let unsplat = (func) => {
You can’t perform that action at this time.