This file contains hidden or 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
#!/usr/bin/env bash | |
# Created by Hugo Ferreira <[email protected]> on isoD. | |
# Copyright (c) 2012 Mindclick. All Rights Reserved. | |
# Licensed under the BSD License: http://creativecommons.org/licenses/BSD | |
readonly BASEDIR=$(cd "$(dirname "$0")" && pwd) # where the script is located | |
readonly CALLDIR=$(pwd) # where it was called from | |
readonly STATUS_SUCCESS=0 # exit status for commands | |
# Script configuration |
This file contains hidden or 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
FROM golang:1.6.2 | |
MAINTAINER Alexandr Medvedev <[email protected]> | |
RUN go get github.com/golang/lint/golint | |
ADD . /go/src/github.com/user/project | |
RUN cd /go/src/github.com/user/project && go get ./... |
This file contains hidden or 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
if ($newGame) $resources->free(); | |
$s = FILEANAME + 3; | |
setLocation(); load(s); | |
$loadDiaog->process(); | |
try { setGamesColor(RED); } | |
catch(Exception $e) { reset(); } | |
while($notReady) { $objects->make(); | |
if ($resourceNotFound) break; } |
This file contains hidden or 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
if (!String.prototype.ucFirst) { | |
(function() { | |
String.prototype.ucFirst = function() { | |
var str = this; | |
if (str.length) { | |
str = str.charAt(0).toUpperCase() + str.slice(1); | |
} | |
return str; | |
}; | |
})(); |
This file contains hidden or 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
/** | |
* @param {{}} [options] | |
* @constructor | |
*/ | |
var Hash = function (options) { | |
options || (options = {}); | |
var hash = options.hasOwnProperty('hash') ? options.hash : window.location.hash; | |
this.options = _.defaults(options, { | |
delimiter: '', |
This file contains hidden or 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 | |
VHOSTEN="/etc/nginx/sites-enabled/" | |
if [[ $1 == "-h" ]] || [[ $1 == "--help" ]] | |
then | |
echo 'Usage: n2dissate VHOST' | |
echo 'Disables Nginxs virtualhost VHOST.' | |
echo -e ' -h, --help\tDisplay this help' | |
exit 0 |