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
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
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
# 現在のユーザー名とホスト名をタイトルに | |
$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
{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] |
NewerOlder