☝️👶👇
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>カレーのレシピ</title> | |
| </head> | |
| <body> | |
| <article> |
![]()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git archive --format=zip --prefix=projectname/ HEAD `git diff --name-only <commit>` -o archive.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hoge = (func1, func2) -> | |
| alert func1.apply() | |
| alert func2.apply() | |
| # NG | |
| hoge () -> 'a', () -> 'b' | |
| # NG | |
| hoge (() -> 'a', () -> 'b') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $$$ = {}; | |
| $$$.ui = {}; | |
| $$$.ui.createImageView = function(options){ | |
| var ui = Ti.UI.createImageView(options); | |
| // 画像を永続化してキャッシュ | |
| ui.imageWithCache = function(url){ | |
| url = url.replace(/\?[0-9]+$/,''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
NewerOlder