Skip to content

Instantly share code, notes, and snippets.

View spleenteo's full-sized avatar
😅
everything's fine!

Matteo Papadopoulos spleenteo

😅
everything's fine!
View GitHub Profile
# live demo http://share.framerjs.com/raf9vavekxei/
# suppose to have different initial layers
# * camera_player_frame <- where video plays
# * photo_shooter <- the button to shoot
# get the module from https://github.com/ktcy/CameraLayer
CameraLayer = require "cameraLayer"
camera = new CameraLayer
@spleenteo
spleenteo / osx-10.11-setup.md
Created March 9, 2016 13:42 — forked from kevinelliott/osx-10.11-setup.md
Mac OS X 10.11 El Capitan Setup

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

@spleenteo
spleenteo / calendar.rb
Last active January 20, 2017 15:07
weekly calendar for a specific year
#!/usr/bin/ruby
require 'date'
year = if ARGV.length > 0
ARGV.first.to_i
else
Time.now.year
end
first_iteration = true
@spleenteo
spleenteo / git commands
Last active August 29, 2015 14:14
just a little personal doc to use git
# delete branch
git branch -d the_local_branch
git push origin :the_remote_branch
@spleenteo
spleenteo / SassMeister-input.sass
Created October 25, 2014 21:29
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
.main-menu__item
color: red
$items: (technology: 10, partners: 20, events: 30, about: 40)

HEROKU PSQL

  heroku pg:psql --app [app-name]

WITHOUT CACHE

  SELECT schemaname,relname,n_live_tup
@spleenteo
spleenteo / svg_in_ai.md
Created March 1, 2013 21:34
Understanding SVG working with Adobe Illustrator

Understanding SVG working with Adobe Illustrator

Here some simple notes of things I discover understanding svg world, created with adobe illustrator.

IDs

Every svg tag can have an ID, usefull to set CSS style or to work with javascript. In AI, layers are basically groups of object. Every object can be named in the layer box and that name will be the id of the relative tag.

<g id=”nome-sub-layer”>

@spleenteo
spleenteo / module-template-hive-ready.sass
Created February 5, 2013 23:45
sass module template with mediaquery ready for hive grid
/* MODULE: */
#module
// SMALLER THAN TABLET LANDSCAPE
@media only screen and (max-width: $hive-phone-landscape-break - 20px)
// SMART PORTRAIT
@media only screen and (max-width: $hive-phone-portrait-break)
@media only screen and (min-width: $hive-phone-portrait-break +1) and (max-width: 480px)
@spleenteo
spleenteo / Contract Killer 3 italiano.md
Created January 18, 2013 12:26
Contract Killer 3 in italiano

Contract Killer 3 Italiano

Revisione del: 15/02/2013

Ogni sinoglo paragrafo potrà essere rimosso, modificato, adottato alle esigenze di ogni singola agenzia o professionista. Ciò che è scritto vuole solo essere una traccia che faciliti il lavoro di stesura.

Contratto

Soggetti coinvolti: (noi) [Nome agenzia] e (voi) [Nome cliente] [ Breve Descrizione del lavoro ]

module Railsyard::Backend
class FormBuilder < SimpleForm::FormBuilder
def group(group_name, options = {}, &block)
group_legend = template.link_to translate(:groups, group_name, group_name.to_s.titleize), "##{group_name}", data: { behaviour: "dom-toggle" }
group_hint = translate(:group_hints, group_name)
[
template.content_tag(:h3, group_legend, class: 'group-header', data: { translation_keys: translate_lookups(:groups, group_name, group_name.to_s.titleize) }),
template.content_tag(:div, id: group_name, class: 'group-content') do