Skip to content

Instantly share code, notes, and snippets.

View AntouanK's full-sized avatar

Antonios Karamitros AntouanK

View GitHub Profile
@AntouanK
AntouanK / Preferences.sublime-settings
Created September 15, 2013 08:17
Preferences.sublime-settings
{
"auto_indent": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_face": "DejaVu_Sans_Mono",
"font_size": 10,
"ignored_packages":
[
],
"line_padding_bottom": 1,
"line_padding_top": 1,
@AntouanK
AntouanK / Default (Linux).sublime-keymap
Last active December 23, 2015 02:48
Default (Linux).sublime-keymap
[
{ "keys": ["ctrl+w"], "command": "find_under_expand_skip" },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
@AntouanK
AntouanK / gist:8099285
Last active January 1, 2016 05:29
my snippets ( JavaScript )
anonymous_self.sublime-snippet
<snippet>
<content><![CDATA[
(function() {
${1}
}());
]]></content>
@AntouanK
AntouanK / gulpfile.js
Last active August 29, 2015 13:56
Promises in gulp.js for exiting after many async(?) tasks
// gulpfile.js section
//
// ...
//
var gulp = require('gulp'),
Q = require('q'),
fs = require('fs'),
brands = ['gitHub', 'joyent', 'fractal'];
// check the available brands folders
@AntouanK
AntouanK / gulpfile.js
Created February 26, 2014 11:20
Gulp recipe
var gulp = require('gulp'),
fs = require('fs'),
rimraf = require('gulp-rimraf'),
Q = require('q'),
copyFilesTo;
// clean the target folder, so we can copy there the new build output
gulp.task('cleanTargetFolder', function(done){
gulp
<script type="text/ng-template" id="one.html">
<div>This is first template</div>
</script>
<script type="text/ng-template" id="two.html">
<div>This is second template</div>
</script>
@AntouanK
AntouanK / gist:9469869
Created March 10, 2014 17:32
CSS expressions
CSS expressions are bad, but if you really must use one, you can make it self-rewriting:
.the-thing {
background-color: expression(this.runtimeStyle.backgoundColor = 'none', [your code here]);
}

July 24 2012 Meeting Notes

Present: Yehuda Katz (YK), Luke Hoban (LH), Rick Waldron (RW), Alex Russell (AR), Tom Van Cutsem (TVC), Bill Ticehurst (BT), Brendan Eich (BE), Sam Tobin-Hochstadt (STH), Norbert Lindenberg (NL), Allen Wirfs-Brock (AWB), Doug Crockford (DC), John Neumann (JN), Oliver Hunt (OH), Erik Arvidsson (EA), Dave Herman (DH)

10:00-11:00am

<script type="text/ng-template" id="one.html">
<div>This is first template</div>
</script>
<script type="text/ng-template" id="two.html">
<div>This is second template</div>
</script>
@AntouanK
AntouanK / sample.js
Last active August 29, 2015 14:03
kick start a stream for gulp use
// ...
var source = require('vinyl-source-stream'),
Vinyl = require('vinyl'),
size = require('gulp-size'),
tap = require('gulp-tap');
var myFile; // I'll store the file contents here
gulp.task('load-file', function(){