Skip to content

Instantly share code, notes, and snippets.

View thanpolas's full-sized avatar

Thanos Polychronakis thanpolas

View GitHub Profile
@thanpolas
thanpolas / MySublimeCheatsheat.md
Created July 3, 2012 14:49
Packages to install, configs, hints & tips

My Sublime cheatsheet

Packages to install

  • Package Control website
  • SublimeLinter Git Site
  • Git support git repo - package control: git
  • sublime-jsdocs git repo - package control: DocBlockr
  • Alignment website - package control:alignment ctrl+alt+a or Cmd+ctrl+a
  • JsFormat Git Site - Package Control: JsFormat Ctrl+Alt+f
@thanpolas
thanpolas / string2path
Created September 17, 2012 19:07
string2path by Ben Alman
/*
* grunt
* http://gruntjs.com/
*
* Copyright (c) 2012 "Cowboy" Ben Alman
* Licensed under the MIT license.
* http://benalman.com/about/license/
*/
(function(exports) {
@thanpolas
thanpolas / invocator.js
Created September 21, 2012 15:26
Get a new instance of an Object (class) that's invocable - binded to a specific method
/**
* The invocator function creates a new instance of the provided constructor
* which is also linked to a method that it contains.
*
* Check this fiddle for a live example: http://jsfiddle.net/thanpolas/Aky9Y/7/
*
* Invocator only works for pseudo-classical type of classes (prototypical).
*
* Requires 'bind' and 'isFunction', currently use underscore's equivalents.
*
@thanpolas
thanpolas / gist:4153379
Created November 27, 2012 09:49
Google Closure events wiring
myApp.Event = function(){};
goog.inherits(myApp.Event, goog.events.Event);
// --- in another file --- //
myApp.ClassOne = function(){
goog.base(this);
@thanpolas
thanpolas / dabblet.css
Created November 30, 2012 13:44
the mark
/**
* the mark
*/
body {
text-align: center;
margin-top: 20px;
}
.thanpolas {
font-size: 202px;
-webkit-border-radius: 12px;
@thanpolas
thanpolas / dabblet.css
Created December 10, 2012 15:46
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.envelope {
font-size: 650%;
font-family: Courier;
}
@thanpolas
thanpolas / dabblet.css
Created December 11, 2012 12:55
Untitled
.codeblock {
width: 600px;
height: 200px;
background-color: yellow;
display: block;
}
.lineno {
background-color: #ddd;
width: 60px;
}
@thanpolas
thanpolas / dabblet.css
Created December 12, 2012 14:00
Untitled
.container {
width: 100%;
}
.col1 {
width: 200px;
float: left;
margin-left: 20px;
background-color: #ddd;
}
@thanpolas
thanpolas / dabblet.css
Created December 12, 2012 14:00
Untitled
.container {
width: 100%;
}
.col1 {
width: 200px;
float: left;
margin-left: 20px;
background-color: #ddd;
}
@thanpolas
thanpolas / dabblet.css
Created December 16, 2012 17:26
Untitled
.container > p:last-child {
background-color: yellow;
}