This file contains 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
# ##### | |
# ##### Prompt | |
# ##### | |
autoload -Uz colors; colors | |
setopt prompt_subst | |
# ref: http://d.hatena.ne.jp/uasi/20091017/1255712789 | |
function prompt-git-current-branch { | |
local name st color | |
if [[ "$PWD" =~ '/\.git(/.*)?$' ]]; then |
This file contains 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
Resources: | |
sslSecurityGroupIngress: | |
Type: AWS::EC2::SecurityGroupIngress | |
Properties: | |
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]} | |
IpProtocol: tcp | |
ToPort: 443 | |
FromPort: 443 | |
CidrIp: 0.0.0.0/0 | |
This file contains 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
var gulp = require('gulp'); | |
var Elixir = require('laravel-elixir'); | |
var ts = require('gulp-typescript'); | |
var concat = require('gulp-concat'); | |
var _ = require('underscore'); | |
// Laravel Elixir Reporter | |
var _laravelReporter = require('./reporter'); | |
Elixir.extend('typescript', function(output, dest, options) { |
This file contains 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
import * as EventEmitter from 'eventemitter3'; | |
import {GameEvent} from "./game_event"; | |
import {PlayerJoinedEvent} from "./player_joined_event"; | |
export class Manager { | |
private emitter: EventEmitter3.EventEmitter; | |
constructor() { | |
this.emitter = new EventEmitter(); |
This file contains 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
(function() { | |
// Open more | |
[].slice.call(document.querySelectorAll(".view-more-bar span")).forEach(function(t) { | |
t.click(); | |
}), setTimeout(function() { | |
[].slice.call(document.querySelectorAll(".toggle-show-more")).forEach(function(t) { | |
t.click(); | |
}); | |
}, 1000); | |
var head = document.getElementsByTagName("head")[0], |
This file contains 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
javascript: (function() { | |
// See more | |
[].slice.call(document.querySelectorAll(".view-more-bar span")).forEach(function(t) { | |
t.click(); | |
}), setTimeout(function() { | |
[].slice.call(document.querySelectorAll(".toggle-show-more")).forEach(function(t) { | |
t.click(); | |
}); | |
}, 500); | |
var head = document.getElementsByTagName("head")[0], |
This file contains 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
import os, re, logging | |
# Configuration | |
sourceDir = '/Users/name/Dropbox/カメラアップロード/' | |
# sourceDir = '/tmp/test/' | |
logFileName = 'organizer.log' | |
# Setup logger | |
streamHandler = logging.StreamHandler() | |
streamHandler.setLevel(logging.INFO) |
This file contains 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
var url = require('url'); | |
var https = require('https'); | |
// TODO: !!! Must be changed following Slack WebHook URL !!! | |
var hookUrl = 'https://hooks.slack.com/services/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'; | |
var processEvent = function(event, context) { | |
var message = JSON.parse(event.Records[0].Sns.Message); | |
// Format Slack posting message |
This file contains 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 | |
/** | |
* Created by IntelliJ IDEA. | |
* User: syamn | |
* Date: 2014/01/02 | |
* Time: 2:48 | |
*/ | |
define(QUINE, 'PD9waHAKLyoqCiAqIENyZWF0ZWQgYnkgSW50ZWxsaUogSURFQS4KICogVXNlcjogc3lhbW4KICogRGF0ZTogMjAxNC8wMS8wMgogKiBUaW1lOiAyOjQ4CiAqLwoKZGVmaW5lKFFVSU5FLCAnQCcpOwplY2hvIHN0cl9yZXBsYWNlKGNocig2NCksIFFVSU5FLCBiYXNlNjRfZGVjb2RlKFFVSU5FKSk7'); | |
echo str_replace(chr(64), QUINE, base64_decode(QUINE)); |
This file contains 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 | |
/** | |
* Created by IntelliJ IDEA. | |
* User: syamn | |
* Date: 2014/01/02 | |
* Time: 2:48 | |
*/ | |
echo html_entity_decode(strip_tags(str_replace('<br />', chr(10), highlight_file(__FILE__, true)))); |
NewerOlder