Skip to content

Instantly share code, notes, and snippets.

View sletix's full-sized avatar
💭
^^

Oleg Artamonov sletix

💭
^^
View GitHub Profile
We couldn’t find that file to show.
God.watch do |w|
w.name = "tstats-worker"
w.group = "tstats"
w.interval = 30.seconds
w.start = "/usr/local/www/wiwz.net/tstats/script/worker.pl"
#w.dir = "/home/tstats_worker"
#w.log = "/home/tstats_worker/worker.log"
#w.uid = 'tstats_worker'
#w.gid = 'tstats_worker'
@sletix
sletix / gist:867239
Created March 12, 2011 13:37
js omsk-style
// From http://217.25.215.20/tn/tablo/map/js/def/def.js
//****************************************************
//---Вспомогательные константы и перечисления
//****************************************************
//Массивы для хранения значений градусов и соответствующих им значений курсов
var ARRAY_DEGREE_VALUES = new Array();
var BASE_IMAGE_PATH = "images/";
sletixbook :: work/cleanplates/apiserv » mvn jetty:run
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.cleanplates:cleanplates-apiserv:war:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: cglib:cglib-nodep:jar -> version [2.1_3,) vs 2.2 @ line 71, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 431, column 29
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
@sletix
sletix / gist:1388117
Created November 23, 2011 07:34
router
class Adminapp.Router extends Backbone.Router
body: ".body-container.js"
initialize: (options) ->
@authenticated = !!options.authenticated
@locations = new Adminapp.Models.Locations
if @authenticated
@locations.fetch()
beforeRoute: (name) ->
sletixbook :: ~ » curl api.cleanplates.dev/fixtures/images
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Cannot invoke method newReader() on null object</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /fixtures/images. Reason:
<pre> Cannot invoke method newReader() on null object</pre></p><h3>Caused by:</h3><pre>java.lang.NullPointerException: Cannot invoke method newReader() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
require 'bowling'
describe Bowling do
before(:each) do
@bowling = Bowling.new
end
it "should score 0 for gutter game" do
20.times { @bowling.hit(0) }
@bowling.score.should == 0
require_once 'Bowling.php';
class DescribeNewBowlingGame extends PHPSpec_Context
{
private $_bowling = null;
public function before()
{
$this->_bowling = new Bowling;
|~bem/
| |~blocks/
| | |~b-confirm-logout/
| | | |-b-confirm-logout.deps.js
| | | `-b-confirm-logout.js
| | |~b-desktop/
| | | |~__start-menu/
| | | | |-b-desktop__start-menu.deps.js
| | | | `-b-desktop__start-menu.js
| | | |~__sub-start-menu/
@sletix
sletix / gist:2654476
Created May 10, 2012 17:02
Players results
- @players.each do |player|
%h3= player.title
%b Player results:
%ul
- player.results.each do |result|
%li= result.current_handicap