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
git log --all --pretty=format:'"%H","%an","%aD","%s"' --shortstat --no-merges | | |
ForEach-Object -Begin { $commitLine = $null } -Process { | |
if ($_ -match '^[0-9a-f"]{40}') { | |
if ($commitLine) { Write-Output $commitLine } | |
$commitLine = $_ | |
} elseif ($_ -match '^\s+[0-9]+ files? changed') { | |
$commitLine += ',"' + $_.Trim() + '"' | |
} | |
} -End { Write-Output $commitLine } | Set-Content -Path app.mc2.fi-frontend.csv |
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 http = require('http'); | |
var https = require('https'); | |
var uri = require('url'); | |
module['exports'] = function updateToken (hook) { | |
if(hook.params.pwd !== hook.env.pwd) { | |
return hook.res.end('invalid pwd'); | |
} | |
//hook.debug("getting url"); |
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 http = require('http'); | |
var https = require('https'); | |
var uri = require('url'); | |
module['exports'] = function garealtime (hook) { | |
var auth = hook.params.authorization | |
run = function() { | |
var url = "https://www.googleapis.com/analytics/v3/data/realtime?ids="+hook.params.ga+"&metrics=rt%3AactiveUsers&key=" + hook.params.key | |
options = uri.parse(url) |
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
@fix = | |
hasLocalStorage: -> | |
try | |
mod = new Date | |
localStorage.setItem mod, mod.toString() | |
result = localStorage.getItem(mod) == mod.toString() | |
localStorage.removeItem mod | |
return true | |
if $.browser.msie? |