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

Keybase proof

I hereby claim:

  • I am zorbash on github.
  • I am zorbash (https://keybase.io/zorbash) on keybase.
  • I have a public key ASBl2ayUhKqqsl25V4ZwUjzCyidzdGMkqEunbXJS6uXNWwo

To claim this, I am signing this object:

curl -XGET 'http://api.giphy.com/v1/gifs/trending?api_key=dc6zaTOxFJmzC' \
| jq '.data | .[].images.original.url' \
| ruby -n -e 'puts $stdin.eof? ? nil : "<img src=#{$stdin.gets.chomp}/>"' \
| ruby -e 'puts "<!DOCTYPE html><html><head></head><body>#{$stdin.read}</body></html>"' \
| w3m -T text/html

Analytics Roadmap

Shop Profiling

Platform Optimization

A Shop has lots of clicks on mobile devices but 0 sales.

What can the Shop owner do?

@zorbash
zorbash / fibonacci_generator.js
Created November 9, 2015 14:11
Fibonacci using JavaScript Generators
function* fib() {
var current = a = b = 1;
yield 1;
while (true) {
current = b;
yield current;
fname=/home/zorbash/Pictures/interval/`date +"%m_%d_%y_%H%M%S"`
fswebcam -r 640x480 --jpeg 85 ${fname}.jpg
convert ${fname}.jpg -resize 1920x1080 ${fname}.jpg
export DISPLAY=:3
scrot ${fname}s.jpg
montage -mode concatenate -tile 1x ${fname}s.jpg ${fname}.jpg ${fname}_combined.jpg
require 'yaml'
Dir['spec/fixtures/*.yml'].each do |filename|
File.open(filename, 'r+') do |file|
yml = YAML.load(file)
file.truncate(0)
file.rewind
file << yml[:response].to_yaml if yml
@zorbash
zorbash / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
class Toggler
defaults =
toggled_class: 'open'
constructor: (el, options) ->
@$element = $(el)
@options = $.extend {}, defaults, options
@init()
$target: -> $(@$element.data('target'))
@zorbash
zorbash / module.coffee
Created April 7, 2015 20:23
Basic module
define ->
moduleKeywords = ['extended', 'included']
###
Ruby-like mixin functionality for CoffeeScript
@see http://arcturo.github.io/library/coffeescript/03_classes.html
###
class Module
###
Copies the properties of the mixin onto the object