Skip to content

Instantly share code, notes, and snippets.

View fatihacet's full-sized avatar
🤙

Fatih Acet fatihacet

🤙
View GitHub Profile
@fatihacet
fatihacet / preferences.sublime-settings
Last active August 29, 2015 13:57
My Sublime Text 3 config
{
"color_scheme": "Packages/Colorsublime-Themes/deep_blue_see.tmTheme",
"enable_tab_scrolling": false,
"env": {
"PATH": "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/share/npm/bin/"
},
"folder_exclude_patterns": [
".svn",
".git",
".hg",
@fatihacet
fatihacet / diff.coffee
Created March 22, 2014 09:16
diff arrays
console.clear()
diff = (a, b) ->
deleted = []
added = []
# deleted.push item for item in a when b.indexOf(item) is -1
# added.push item for item in b when a.indexOf(item) is -1
clone = b.slice 0
@fatihacet
fatihacet / main.coffee
Created March 26, 2014 19:30
Coffee2JS.kdapp
class CoffeetojsMainView extends KDView
constructor: (options = {}, data) ->
super options, data
@loading = new KDLoaderView
size :
width : 48
showLoader : yes
@fatihacet
fatihacet / Modal.coffee
Created November 10, 2014 14:28
spark.components.Modal
goog.provide 'spark.components.Modal'
goog.require 'spark.core.View'
goog.require 'spark.components.Overlay'
class spark.components.Modal extends spark.core.View
###*
@fatihacet
fatihacet / npm-init.log
Created December 20, 2014 12:08
npm-init log
acetz:fe-ci facet$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sane defaults.
See `npm help json` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.
@fatihacet
fatihacet / Gruntfile.coffee
Created December 20, 2014 12:38
Empty Gruntfile
module.exports = (grunt) ->
grunt.initConfig
grunt.loadNpmTasks 'grunt-npm'
grunt.registerTask 'default', 'Default task',->
grunt.task.run []
@fatihacet
fatihacet / Gruntfile.coffee
Last active August 29, 2015 14:11
Sample Gruntfile
module.exports = (grunt) ->
grunt.initConfig
coffee :
options :
bare : yes
src :
files : [
expand : yes
@fatihacet
fatihacet / Box.coffee
Last active August 29, 2015 14:11
Sample Box class for FE-CI blog post.
class Box
###*
Class for representing a box. A box is specified as a top, right, bottom
and left.
@constructor
@param {Object} options Options object to hold top, right, bottom
and left values.
###
describe 'Box', ->
beforeEach ->
box = new Box
top : 200
right : 400
bottom : 400
left : 100
@fatihacet
fatihacet / simple-aop.js
Created April 14, 2011 12:42 — forked from anonymous/gist:666343
simple aop in javascript
var fio = {};
fio.deneme = function(xxx){
alert(xxx);
}
var oldfunction = fio.deneme;
fio.deneme = function(){