Skip to content

Instantly share code, notes, and snippets.

View fatihacet's full-sized avatar
🤙

Fatih Acet fatihacet

🤙
View GitHub Profile
@fatihacet
fatihacet / flipcounterview.coffee
Last active August 29, 2015 13:55 — forked from burakcan/Coffee
FlipCounterView
class FlipCounterView extends KDView
constructor : (options = {}, data = {}) ->
options.style ?= "dark"
options.from ?= 5000
options.to ?= 10000
options.interval ?= 1000
options.step ?= 1
options.autoStart ?= yes
options.direction = if options.from < options.to then "up" else "down"
options.digits ?= if options.direction is "up" then options.to.toString().length else options.from.toString().length
@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",

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@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 / fontello.css
Last active August 29, 2015 14:11
icon font sample usage
@font-face {
font-family: 'fontello';
src: url('../font/fontello.eot?14391850');
src: url('../font/fontello.woff?14391850') format('woff'),
url('../font/fontello.ttf?14391850') format('truetype'),
url('../font/fontello.svg?14391850#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
@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