Skip to content

Instantly share code, notes, and snippets.

View lukaszkorecki's full-sized avatar
🌴
🛹

Łukasz Korecki lukaszkorecki

🌴
🛹
View GitHub Profile
function a( args ) {
// wysyłam do Flasha args
}
function b( myArgs ) {
// 5 sekund po otrzymaniu args, Flash wywołuje funkcję b( myArgs )
}
a(args);
// ==UserScript==
// @name BillMonitor Admin
// @namespace http://userscripts.org/users/useridnumber
// @include http://192.168.1.7/results*
// @include http://192.168.1.7/mobile/results*
// ==/UserScript==
var UID;
var forms = document.getElementsByTagName('form');
for (i=0; i < forms.length; i++)
class ApplicationController < ActionController::Base
protected
def _log msg, is_json=false, level=:notice
request.env[is_json ? 'firebug.logs_obj' : 'firebug.logs'] ||=[]
request.env[is_json ? 'firebug.logs_obj' : 'firebug.logs'] = [[level.to_sym, (is_json ? msg.to_s.to_json : msg.to_s)]]
end
end
  1. save to /usr/local/git/bin/git-plush
  2. chmod 755
  3. ???
  4. profit
#!/bin/bash
# It doesn't get more efficient than this.
echo "I\'m going to pull from"
echo $1
echo $2
echo "and then push, ok?"
git pull $1 $2 && git push $1 $2
⨀_⨀
⨂_⨂
(/◔ ◡ ◔)/
°ﺑ°
(¬_¬)
(´・ω・`)
(ʘ_ʘ)
(ʘ‿ʘ)
(ಠ_ಠ)
(ಠ‾ಠ)
num = ARGV[0].to_i
x = num
y = num - 2
grid = Array.new(y) { Array.new(x, '*')}
required_spiral_depth = x / 4 + 1
(1..required_spiral_depth*2).step(2) do |spiral_depth|
(spiral_depth..y-spiral_depth).each do |i|
// w js nie ma switcha z regexem :-(
desc "Check the JavaScript source with JSLint - exit with status 1 if any of the files fail."
task :jslint do
jsl_path = "jsl" # get jsl bin from http://javascriptlint.com
failed_files = []
Dir['public/**/*.js'].reject{|path| path =~ /javascripts.js/ }.each do |fname|
cmd = "#{jsl_path} -nologo -nocontext -nofilelisting -process #{fname} | grep err"
results = %x{#{cmd}}
puts "#{fname} | " << results
results.gsub("(s)","").split(",").each do |result|
@lukaszkorecki
lukaszkorecki / _info
Created August 22, 2009 09:02 — forked from ravicious/_info
Autor designu: ^ludwik http://ludwik.org/blipapp-jest-jakis-chetny-developer/
Przeportował: ^ravicious
Poprawił: ^plugawy (fix dla licznika blipnięć + pozycja textarea)
# Instalacja
- kliknij na przycisk `raw` przy panelu dla pliku `deskblip.css`
- skopiuj całą zawartość i przejdź do ustawień deskBlipa
- tam wklej skopiowaną zawartość i kliknij przycisk `Zapisz ustawienia`
# Podgląd