Skip to content

Instantly share code, notes, and snippets.

gem_package "scout" do
action :install
end
scout_key = `scout`
execute "crontab" do
run "crontab << EOF
* * * * * deploy /usr/bin/scout #{scout_key}
EOF"
end
@midu
midu / gist:1445461
Created December 8, 2011 00:18
little alchemy
for(i in names.lang) { console.log(names.lang[i] + ': ' + names.lang[base.base[i][0][0]] + ' + ' + names.lang[base.base[i][0][1]] ); }
water: undefined + undefined
fire: undefined + undefined
earth: undefined + undefined
air: undefined + undefined
steam: water + fire
lava: fire + earth
pressure: earth + earth
volcano: earth + lava
sea: water + water
@midu
midu / dabblet.css
Created January 4, 2012 16:40 — forked from kizu/dabblet.css
Centered heading with rules
/* Centered heading with rules */
h1 {
position: relative;
overflow: hidden;
white-space: nowrap;
text-align: center;
text-overflow: ellipsis;
color: #f2c63f;
font: 1.6em/1.1 Georgia;
padding: .2em 0;
@midu
midu / dabblet.css
Created January 4, 2012 16:41
Centered heading with rules
/* Centered heading with rules */
h1 {
position: relative;
overflow: hidden;
white-space: nowrap;
text-align: center;
text-overflow: ellipsis;
color: #f2c63f;
font: 1.6em/1.1 Georgia;
padding: .2em 0;
https://www.scoutapp.com/plugin_urls/341-log-watcher
@midu
midu / solrconfig.xml
Created January 10, 2012 22:48 — forked from niuage/gee
hehe
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@midu
midu / css-utils.js
Created January 23, 2012 19:40
CSS Utils (extracted from @ahujaankit's Stylebot chrome extension)
/**
* Utility methods for CSS generation and manipulation
*
* Copyright (c) 2010 Ankit Ahuja
* Dual licensed under GPL and MIT licenses.
**/
var CSSUtils = {
/* e.g. of rules object used as input / output:
@midu
midu / easter_egg.js
Created February 8, 2012 19:01
when I found old code that starts by "nb_lols", I have to make a gist out of it
nb_lols = 0;
midu = null;
$(document).ready(function() {
var makeP = function(color) {
p = $("<p></p>").css('color', color)
.css('display', 'inline-block')
.css('font-weight', 'bold')
.css('padding', '3px')
<%= @submissions_presenter.render_unless_draft(submission) do %>
<%= 'kikou chrissou' %>
<% end %>
@midu
midu / image_replacement.css
Created March 6, 2012 17:14
a collection of image replacement techniques
.old_and_lulz {
text-indent: -9999999999999999999999999999999999999999999999999999px; /* lol */
}
.more_solid_but_still_weird {
display: block;
text-indent: -999em;
overflow: hidden;
background-repeat: no-repeat;
text-align: left;