Skip to content

Instantly share code, notes, and snippets.

View leodido's full-sized avatar
🚒

Leo Di Donato leodido

🚒
View GitHub Profile
@leodido
leodido / R.sublime-settings
Created July 14, 2012 21:10
Sublime Text 2 - Syntax-specific User Settings for R
// Create this file through ST2 menu: Preferences -> Settings - More -> Syntax-Specific User
// It will be placed in the "Packages/User/" directory of your ST2 installation
// Paste the content of this file in it and save it
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_face": "Monospace",
"font_size": 10,
@leodido
leodido / R.sublime-settings
Created July 14, 2012 21:06
Sublime Text 2 - R Syntax-specific Settings for Sublime Alignment
// This file contains the settings for Sublime Alignment to work with R files
// Sublime Alignment -> https://github.com/wbond/sublime_alignment
// Put this file in the "/Packages/Alignment/" directory of your ST2 installation
{
// The mid-line characters to align in a multi-line selection, changing
// this to an empty array will disable mid-line alignment
"alignment_chars": [ "=", "-" ],
// If the following character is matched for alignment, insert a space
// before it in the final alignment
@leodido
leodido / ST2 - Useful Shortcuts
Last active October 7, 2015 05:58
Sublime Text 2 - Useful Shortcuts
h1. Sublime Text 2 - Useful Shortcuts
Loosely ordered with the commands I use most towards the top. Sublime also offer "full documentation":http://www.sublimetext.com/docs/2/.
h2. Editing
| *Ctrl+C* | copy current line (if no selection) |
| *Ctrl+X* | cut current line (if no selection) |
| *Ctrl+⇧+K*| delete line |
| *Ctrl+↩* | insert line after |
@leodido
leodido / R.sublime-completions
Created July 17, 2012 05:47 — forked from jlegewie/R.sublime-completions
Sublime Text 2 - R Auto-completions
{
"scope": "source.r",
"completions":
[
"abline",
"abs",
"anova",
"anova.glm",
"anova.lm",
@leodido
leodido / MySQL dump - zip - mail
Last active October 11, 2015 01:18 — forked from miziomon/mysql2mail
MySQL dump, zip and mail command
mysqldump -u[user] -p[password] [dbname]| gzip --best -c > [dbname].sql.gz && (date && echo "[mail subjext]" && uuencode [dbname].sql.gz ) | mail [mail] -s "[mail subjext]"
@leodido
leodido / Ubuntu 12.04 - Bumblebee installation
Created October 4, 2012 20:19
How to use Optimus Nvidia technology on Ubuntu 12.04 installation (for GT6xxM cards)
# note: 4.A and 4.B are mutually exclusive
# 1 # blumblebee repository
sudo add-apt-repository ppa:bumblebee/stable
# 2 # nvidia drivers
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
# 3 # update
sudo apt-get update
@leodido
leodido / battisti-monza
Last active December 18, 2015 05:39
TSIS-CORSIM™ model for Viale Cesare Battisti, Monza - Italia
Informations about TSIS-CORSIM™ model for Viale Cesare Battisti, Monza - Italia.
@leodido
leodido / simple
Last active December 19, 2015 17:19
TSIS-CORSIM™ model called "Simple"
# Detector ID
01 D212
02 D121
03 D272
04 D721
05 D392
06 D931
07 D4412
08 D1141
@leodido
leodido / skeleton-polymer.js
Last active May 31, 2016 09:19
ES2015 class skeleton for Polymer elements
'use strict';
let behaviors = Symbol('behaviors')
const SkeletonPolymerBehavior = {
// Define your behavior
};
class SkeletonPolymer {
Verifying that "leodido.id" is my Blockstack ID. https://onename.com/leodido