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
# 人生初gulpfile | |
gulp = require "gulp" | |
coffee = require "gulp-coffee" | |
jade = require "gulp-jade" | |
stylus = require "gulp-stylus" | |
del = require "del" | |
paths = | |
coffee: 'src/coffee/*.coffee' |
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
# Load DSL and Setup Up Stages | |
require 'capistrano/setup' | |
# Load DSL and Setup Up Stages | |
require 'capistrano/setup' | |
# Includes default deployment tasks | |
require 'capistrano/deploy' | |
++ # Include Symfony2 tasks | |
++ require 'capistrano/symfony' |
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
<?php | |
$data = ["type" => "php", "method" => "hoge", "action" => "aaaaa"]; | |
while (list($key, $value) = each($data)) { | |
echo "key::$key\n"; | |
echo "key::$value\n"; | |
} |
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
<script> | |
var HogeModel = Backbone.Model.extend({ | |
methodToURL: { | |
'read' : '{{ path("get_hoge") }}', | |
'create': '{{ path("post_hoge") }}', | |
'update': '{{ path("put_hoge", {"id": "id"}) }}', | |
'delete': '{{ path("delete_hoge", {"id": "id"}) }}' | |
}, | |
defaults: function() { | |
return {}; |
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
<?php | |
class DataObject | |
{ | |
public $a; | |
public $b; | |
public function __toString() | |
{ | |
return (string)$this->a . ','. $this->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
<?php | |
array_walk_recursive($_GET, function(&$value){ | |
$value = mb_convert_encoding($value, 'UTF_8', 'SJIS-win'); | |
}); |
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
# app/alt/controllers/index.coffee | |
doClick = (e)-> | |
alert $.label.text | |
$.index.open() |
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
task("pre:compile", function(event,logger) { | |
var wrench = require("wrench"), | |
fs = require("fs"), | |
jade = require("jade"), | |
jade_root = event.dir.home + "/alt/views", | |
coffee_root = event.dir.home + "/alt", | |
yml_root = event.dir.home + "/alt/styles", | |
view_root = event.dir.views, | |
js_root = event.dir.models, | |
tss_root = event.dir.home + "/styles", |
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> | |
<title>example</title> | |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="name"> |
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
/* | |
html2image 0.0.1 <http://html2canvas.hertzen.com> | |
Copyright (c) 2013 Ryota Mochizuki (@polidog) | |
Fork by | |
html2canvas 0.4.0 <http://html2canvas.hertzen.com> | |
Copyright (c) 2013 Niklas von Hertzen (@niklasvh) | |
Released under MIT License | |
*/ |