Skip to content

Instantly share code, notes, and snippets.

View takanorip's full-sized avatar
🍣
sushi

takanorip takanorip

🍣
sushi
View GitHub Profile
@takanorip
takanorip / hide-long-text-only-css.markdown
Created October 13, 2016 12:56
hide long text only css
@takanorip
takanorip / holy-grail-layout.markdown
Created October 13, 2016 12:57
Holy Grail Layout
@takanorip
takanorip / index.html
Created October 13, 2016 12:58
Vjyjrx
<!-- TAB CONTROLLERS -->
<input id="panel-1-ctrl" class="panel-radios" type="radio" name="tab-radios" checked>
<input id="panel-2-ctrl" class="panel-radios" type="radio" name="tab-radios">
<input id="panel-3-ctrl" class="panel-radios" type="radio" name="tab-radios">
<!-- TABS LIST -->
<ul id="tabs-list">
<!-- MENU TOGGLE -->
<li id="li-for-panel-1">
<label class="panel-label" for="panel-1-ctrl">Tab1</label>
@takanorip
takanorip / index.html
Last active October 13, 2016 13:02
TODO by Vue.js
<div id="myApp">
<p>
Task:
<input type="text" v-model="newTask" v-on:keyup.enter="addTask()">
<button v-on:click="addTask()">ADD</button>
</p>
<ul>
<li v-for="todo in todos">
<input type="checkbox" v-model="todo.isCompleted">
@takanorip
takanorip / index.html
Created October 13, 2016 13:03
LZpgrm
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Random animation</title>
<script src="main.js"></script>
</head>
<body>
<canvas id="cv" width="500" height="500"></canvas>
</body>
</html>
@takanorip
takanorip / App.js
Last active October 26, 2016 01:23
react-routerを使ってページ遷移(@第3回 Reactハンズオン 初等部編) ref: http://qiita.com/takanorip/items/649c7862a8a5380dd8be
import React, { Component } from 'react';
import { render } from 'react-dom';
import { BrowserRouter, Match, Miss, Link } from 'react-router'
class Top extends Component {
render() {
return <div>Top</div>;
}
}
@takanorip
takanorip / index.html
Created December 20, 2016 12:47
transform: translate3d demo
<div class="hoge"></div>
<button id="remove" type="button">back</button>
<button id="add" type="button">move</button>
@takanorip
takanorip / font.js
Last active December 3, 2018 13:37
const font = new FontFace("hack", "url(https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.003/web/fonts/hack-regular.woff2)", {
style: 'normal',
weight:'400'
});
// DOMツリーのレンダリングを待たずにフォントをダウンロードする
font.load();
// font.load() はPromiseを返す
font.load().then(function() {