Skip to content

Instantly share code, notes, and snippets.

View zorbash's full-sized avatar
👨‍💻
'); DROP TABLE recruiters;

Dimitris Zorbas zorbash

👨‍💻
'); DROP TABLE recruiters;
View GitHub Profile
@zorbash
zorbash / dabblet.css
Created January 16, 2012 01:40
Untitled
.container > #header > #nav-container {
width: 570px;
right: 10px;
position: absolute;
}
.container > #header > #nav-container > ul#nav-global {
padding-top: 8px;
height: 18px;
@zorbash
zorbash / dabblet.css
Created February 17, 2012 15:58 — forked from LeaVerou/dabblet.css
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from {
transform: rotate(0deg)
translate(-150px)
rotate(0deg);
@zorbash
zorbash / object_to_array.php
Created March 28, 2012 21:53
php object to array function to be used before json encoding of a class
function object_to_array($object, $utf_encode=FALSE)
{
if(is_array($object) || is_object($object))
{
$array = array();
foreach($object as $key => $value)
{
$value = object_to_array($value, $utf_encode);
if($utf_encode && is_string($value)){
$value = utf8_encode($value);
@zorbash
zorbash / cv_dimitrios_zorbas.html
Created October 5, 2012 18:22
cv_dimitrios_zorbas
<!DOCTYPE html>
<!-- saved from url=(0020)file:///tmp/695.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><style>html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body{
color:#444;
font-family:Georgia, Palatino, 'Palatino Linotype', Times,
'Times New Roman', serif,
"Hiragino Sans GB", "STXihei", "微软雅黑";
font-size:12px;
@zorbash
zorbash / scanlines.css
Created November 7, 2012 16:05
scanlines background
.scanlines {
background-image: linear-gradient(90deg,
#223 25%, #450 25%, #410 50%,
#230 50%, #210 75%, #200 75%, #190);
background-size:6px 6px;
}
@zorbash
zorbash / index.html
Created November 23, 2012 16:21
A CodePen by Dimitrios Zorbas.
<div class="popover">
<div class="popover-arrow"></div>
</div>
@zorbash
zorbash / nginx.conf
Created December 18, 2012 01:57 — forked from mimosz/nginx.conf
# sudo ln -s ~/nginx.conf unicorn.conf
upstream app_server {
server unix:/tmp/unicorn_padrino.sock fail_timeout=0;
}
server {
listen 80;
charset utf-8;
server_name db.innshine.com;
@zorbash
zorbash / env.rb
Created January 2, 2013 15:12 — forked from diago/env.rb
PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
require 'rubygems'
require 'spork'
Spork.prefork do
# Loading more in this block will cause your tests to run faster. However,
# if you change any configuration or code from libraries loaded here, you'll
# need to restart spork for it take effect.
# put this in /lib/resque.rb
require 'mail'
module Emailer
class Send
@queue = :issue_mailer
def self.perform(addressee, subject, body)
@zorbash
zorbash / default.js
Last active December 10, 2015 17:48
my current default.js
(function() {
window.dotjs = {
// add websites you think are crap.
bad: [
/newsbomb.gr/,
/zougla.gr/,
/newsbeast.gr/
],