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 | |
echo "Temporarily muting notifications until aborted..." | |
killall -s SIGSTOP notify-osd | |
keepgoing=1 | |
trap '{ echo "sigint"; keepgoing=0; }' SIGINT | |
while (( keepgoing )); do | |
sleep 5 | |
done |
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 | |
function mockRequest($method, $uri, $headers, $response) | |
{ | |
return function (RequestInterface $request, $options) use ($method, $uri, $headers, $response) { | |
if ($method != $request->getMethod()) { | |
throw new \LogicException("Invalid Mock: '$method'' expected"); | |
} | |
$actual = $request->getUri(); | |
if ($uri != $request->getUri()) { |
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 | |
namespace Lib\Interactor; | |
trait Interactor | |
{ | |
abstract function call(); | |
public function __invoke() | |
{ |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
user := NewUser("Jack Daniels") | |
client := NewClient("Jack", "Black") |
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
source "https://rubygems.org" | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
gem "rspec" | |
gem "rest-client" | |
gem "mockserver-client" |
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
package main | |
import ( | |
"github.com/inconshreveable/go-update" | |
"net/http" | |
"log" | |
"fmt" | |
"github.com/kardianos/service" | |
"os" | |
"os/signal" |
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
package logger | |
type Logger interface { | |
Debug(args ...interface{}) | |
Debugln(args ...interface{}) | |
Info(args ...interface{}) | |
Infoln(args ...interface{}) | |
Warn(args ...interface{}) | |
Warnln(args ...interface{}) | |
Error(args ...interface{}) |
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
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
if [[ $UID -eq 0 ]]; then | |
local user_host='%{$terminfo[bold]$fg[red]%}%n@%m%{$reset_color%}' | |
else | |
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}' | |
fi |
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
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > | |
< mobile.html: VLC media player web interface - VLM | |
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > | |
< Copyright (C) 2005-2006 the VideoLAN team | |
< $Id$ | |
< | |
< Authors: Brandon Brooks <bwbrooks -at- archmageinc -dot- com> | |
< | |
< This program is free software; you can redistribute it and/or modify | |
< it under the terms of the GNU General Public License as published by |
NewerOlder