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
# 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
<?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
<?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
<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 | |
$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
# 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
# 人生初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
# coding: utf-8 | |
import re | |
import unicodedata | |
from sh import aws | |
BUCKET = "aws-bucket-name" # 対象のs3 bucket名 | |
s3 = aws.bake("s3") | |
def _s3rename(path, name, rename): |
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
{ | |
"name": "polidog/composer-test", | |
"authors": [ | |
{ | |
"name": "polidog", | |
"email": "[email protected]" | |
} | |
], | |
"repositories": [ |