Skip to content

Instantly share code, notes, and snippets.

View func09's full-sized avatar

Mitsuru Haga func09

View GitHub Profile
@func09
func09 / html_practice.html
Last active December 16, 2021 10:30 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>カレーのレシピ</title>
</head>
<body>
<article>

☝️👶👇

アイドル再構築説、もしくはアイドル音楽とクラブ音楽の融合について

本日のテーマ

  • 2010年代アイドルのサブカル化はどのように移行されたか
  • クラブ系プロデューサーが歌の下手な女の子を器用しアイドルを模倣してきた歴史
  • (下手な歌 + 下手な踊り) * かわいい女の子 = アイドル

曲は基本途中で切ります

<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@func09
func09 / git-diff-zip.sh
Created October 29, 2011 06:24
Gitで特定のコミットからの差分ファイルだけ抜き出してZipにする
git archive --format=zip --prefix=projectname/ HEAD `git diff --name-only <commit>` -o archive.zip
@func09
func09 / routes.js.coffee
Created July 16, 2011 17:15
routes.js.coffee
match = (path, callback) ->
$ ->
param_names = path.match(/:([\w]+)/g)
regexp = new RegExp('^'+path.replace(/:[\w]+/g,'([\\w]+)')+'$')
if m = window.location.pathname.match regexp
m.shift()
params = {}
if param_names
for param_name in param_names
params[param_name] = m.shift()
@func09
func09 / gist:1053552
Created June 29, 2011 09:52
CoffeeScriptで2つのメソッド引数を取るとき、美しく書きたい・・・
hoge = (func1, func2) ->
alert func1.apply()
alert func2.apply()
# NG
hoge () -> 'a', () -> 'b'
# NG
hoge (() -> 'a', () -> 'b')
@func09
func09 / Ti.UI.ImageView#imageWithCache
Created April 20, 2011 10:37
TitaniumのImageViewでリモートURLの画像を永続的にキャッシュする
$$$ = {};
$$$.ui = {};
$$$.ui.createImageView = function(options){
var ui = Ti.UI.createImageView(options);
// 画像を永続化してキャッシュ
ui.imageWithCache = function(url){
url = url.replace(/\?[0-9]+$/,'');
upstream backend-unicorn-foodfoto {
server unix:/tmp/unicorn_of_foodfoto.sock;
}
server {
listen 80;
server_name devremote.foodfoto.info;
access_log /var/log/nginx/devremote.foodfoto.info.access.log;
error_log /var/log/nginx/devremote.foodfoto.info.error.log;