Skip to content

Instantly share code, notes, and snippets.

View fatihacet's full-sized avatar
🤙

Fatih Acet fatihacet

🤙
View GitHub Profile
@fatihacet
fatihacet / getdomcount.js
Created October 14, 2011 15:11 — forked from dashersw/getdomcount.js
get dom element counts by tag name with jquery
var tags = {};
$("*").each(function(item) {
if (!tags[this.tagName]) {
tags[this.tagName] = 0;
}
tags[this.tagName]++;
});
console.dir(tags);
@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(){
//import the selenium web driver
var webdriver = require('selenium-webdriver');
var chromeCapabilities = webdriver.Capabilities.chrome();
//setting chrome options to start the browser fully maximized
var chromeOptions = {
'args': ['--test-type', '--start-maximized']
};
chromeCapabilities.set('chromeOptions', chromeOptions);
var driver = new webdriver.Builder().withCapabilities(chromeCapabilities).build();

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 / 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