- Smarter completion:
- cd tab completion -- directories only
- bash can do this, but needs the bash-completion package, usually comes separately
- zsh always comes with completions, why doesn't bash?
- Filename correction during completion
- if dir1/x exists and dir2 exists, then "dir/x<TAB>" completes to dir1/x
- if name1 is a file and name2 is a directory with files in it, "name/<TAB>" completes to "name2/"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# it is forked from https://github.com/xijo/reverse-markdown/blob/master/reverse_markdown.rb | |
require 'rexml/document' | |
require 'benchmark' | |
include REXML | |
include Benchmark | |
class ReverseMarkdown | |
# set basic variables: | |
# - @li_counter: numbering list item (li) tags in an ordered list (ol) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var listaFatture = new List<Fatture>(); | |
listaFatture.Add(new Fatture(15, "Fattura fittizzia", DateTime.Now)); | |
listaFatture.Add(new Fatture(0, "Fattura FOOOO", DateTime.Now)); | |
listaFatture.Add(new Fatture(35000, "BAAARRRRR", DateTime.Now)); | |
var obb = new obbligatori(); | |
obb.Descrizione = "descrizione sommaria"; | |
obb.Nome = "che bel nome : fooo {{foo}}"; | |
obb.Fattures = listaFatture; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FluentNHibernate.Mapping; | |
public class WebReference | |
{ | |
public virtual int Id { get; private set; } | |
public virtual string Title { get; set; } | |
public virtual string SubTitle { get; set; } | |
public virtual string ImageSmall { get; set; } | |
public virtual string ImageBig { get; set; } | |
public virtual string DescriptionSmall { get; set; } | |
public virtual string DescriptionBig { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body, .container, .content { | |
height: 100%; | |
} | |
.container, .content { | |
position: relative; | |
} | |
.proper-content { | |
padding-top: 40px; /* >= navbar height */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body, .container, .content { | |
height: 100%; | |
} | |
.container, .content { | |
position: relative; | |
} | |
.proper-content { | |
padding-top: 40px; /* >= navbar height */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_fastcgi.c> | |
AddHandler fastcgi-script .fcgi | |
</IfModule> | |
<IfModule mod_fcgid.c> | |
AddHandler fcgid-script .fcgi | |
</IfModule> | |
Options +FollowSymLinks +ExecCGI | |
RewriteEngine On |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery.naturalWidth / jQuery.naturalHeight plugin for (already-loaded) images | |
// Triple-licensed: Public Domain, MIT and WTFPL license - share and enjoy! | |
(function($) { | |
function img(url) { | |
var i = new Image; | |
i.src = url; | |
return i; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>My first Three.js app</title> | |
<style>canvas { width: 100%; height: 100% }</style> | |
</head> | |
<body> | |
<script src="three.min.js"></script> | |
<script> | |
var scene = new THREE.Scene(); | |
var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000); |