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
angular.module('jobFoundryDirectives').directive 'spy', ($location) -> | |
restrict: "A" | |
require: "^scrollSpy" | |
link: (scope, elem, attrs, scrollSpy) -> | |
attrs.spyClass ?= "current" | |
elem.click -> | |
scope.$apply -> | |
$location.hash(attrs.spy) |
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
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
class FileOperator | |
# constant | |
BACKUP_DIR_NAME = "bak" | |
NO_OVERWRITE = "false" | |
PATH_SEPARATOR = "/" | |
EXTENSION_SEPARATOR = "." | |
REVISION_INIT = 2 | |
# fields |
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
#!/bin/bash | |
# | |
#################################### | |
# iTunes Command Line Control v1.0 | |
# written by David Schlosnagle | |
# created 2001.11.08 | |
# edit 2010.06.01 rahul kumar | |
#################################### | |
showHelp () { |
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
{Iconv} = require "iconv" | |
{Buffer} = require "buffer" | |
# エンコーディングの判別 | |
getCharset = (body) -> | |
bin = body.toString('binary') | |
re = bin.match(/<meta\b[^>]*charset=["']?([\w\-]+)/i) | |
if re | |
charset = re[1] |
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
# 現在のユーザー名とホスト名をタイトルに | |
$global:currentuser = [System.Security.Principal.WindowsIdentity]::GetCurrent() | |
$user_and_host = ($currentuser.name -replace "(.*?)\\(.*?)$", "`$2@`$1") | |
$Host.UI.RawUI.WindowTitle = $user_and_host + " - Windows PowerShell" | |
# プロンプトのカスタマイズ | |
function prompt { | |
write-host "" | |
# ディレクトリの表示 (バックスラッシュをスラッシュに変換) |
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
angular.module('analytics', []) | |
.factory 'Analytics', ['$log', ($log) -> | |
_service = null | |
_tracker = null | |
return { | |
###* | |
Set parameter, and initialize. |
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() { | |
RTT.addPlugin("emptyPlugin", { | |
onSendTimeEntry: function(RTT, params) { | |
return console.log("onSendTimeEntry"); | |
}, | |
onSendedTimeEntry: function(RTT, params) { | |
return console.log("onSendedTimeEntry"); |
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/lib/boot2docker/に格納するとdocker-machine起動時に実行される | |
ip addr add 172.29.32.2/20 dev eth0 # HostOSと同じサブネット内で固定IPアドレスを設定する | |
uid=1000 # dockerユーザ | |
gid=50 # staffグループ | |
user=share # HostOSで共有を許可したユーザ名 | |
password=xxxxxxxxxxxx # 共有を許可したユーザのパスワード | |
host_ip=//172.29.32.1 # HostOSのIPアドレス |
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/lib/boot2docker/に格納するとdocker-machine起動時に実行される | |
ip addr add 172.29.32.2/20 dev eth0 # HostOSと同じサブネット内で固定IPアドレスを設定する | |
uid=1000 # dockerユーザ | |
gid=50 # staffグループ | |
user=share # HostOSで共有を許可したユーザ名 | |
password=xxxxxxxxxxxx # 共有を許可したユーザのパスワード | |
host_ip=//172.29.32.1 # HostOSのIPアドレス |
OlderNewer