Skip to content

Instantly share code, notes, and snippets.

View vigo's full-sized avatar
📺
Everything that has a beginning has an end.

Uğur Özyılmazel vigo

📺
Everything that has a beginning has an end.
View GitHub Profile
@vigo
vigo / turko.js
Created November 28, 2010 19:38
Tumblr için Türkçe'ye çevirme jQuery Plugin'i
<script type="text/javascript" charset="utf-8">
(function($){
$.fn.turko = function(options){
var defaults = {
},
dictionaryItems = {
/* aylar uzun */
'January': "Ocak",
'February': "Şubat",
'March': "Mart",
@vigo
vigo / .nanorc
Created March 15, 2011 10:59
Nano config file
## .css
##############################################################################
syntax "css" "\.css$"
color brightred "."
color brightyellow start="\{" end="\}"
color brightwhite start=":" end="[;^\{]"
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$"
color brightblue start="\/\*" end="\\*/"
color green ";|:|\{|\}"
##############################################################################
@vigo
vigo / free-memory.rb
Created January 27, 2012 18:00
"free" command for osx. Shows available memory
#!/usr/bin/env ruby
# encoding: utf-8
# By Uğur Özyılmazel, @vigobronx | @ugurozyilmazel
# http://vigodome.com | http://ugur.ozyilmazel.com | http://github.com/vigo
def get_paged_memory_usage(match_string, paging=4096)
mvar = 3
if match_string.split(/[^\w]/).length > 1
mvar = 4
@vigo
vigo / git-cwd-info.rb
Created February 3, 2012 12:27
Git prompt for Bash
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# The methods that get called more than once are memoized.
# original:
# https://github.com/benhoskings/dot-files/blob/master/files/bin/git_cwd_info
$RESET = "\e[0m" # reset
@vigo
vigo / stress_test.rb
Created February 9, 2012 13:47
Mini Url checker tool
#!/usr/bin/env ruby
# encoding: utf-8
# Uğur Özyılmazel, [email protected] @vigobronx, @ugurozyilmazel
require 'optparse'
require 'open-uri'
require 'uri'
$VERSION = 1.1
@vigo
vigo / index.html
Created May 31, 2012 23:06
devPod Tumblr Theme
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{Title}{block:SearchPage}, {lang:Search results for SearchQuery}{/block:SearchPage}{block:PostSummary}, {PostSummary}{/block:PostSummary}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
<meta name="text:Meta Author Name" content=""/>
<meta name="author" content="{text:Meta Author Name}">
<meta name="image:Header" content="" />
@vigo
vigo / powder_bash_completion.sh
Created July 19, 2012 21:40
bash completion for "powder"
# you must install powder gem
#
# gem install powder
#
#
_powder()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
@vigo
vigo / sublime2-python-django.md
Created September 18, 2012 12:16
Sublime Text 2, Python + Django ve Virtualenv ile otomatik tamamlama + PEP kontrolü

Sublime Text 2, Python + Django ve Virtualenv ile otomatik tamamlama + PEP kontrolü

Gerekenler

  1. [Sublime Text 2][1]
  2. [Sublime Paket Yöneticisi][2]

Kurulum

Zaten python, virtualenv vs gibi şeylerin kurulu olduğunu varsayıyorum.

@vigo
vigo / userconfig.json
Created September 18, 2012 12:53
Sublime2 Settings
{
"find_selected_text": true,
"font_face": "Menlo",
"font_size": 14,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
@vigo
vigo / ruby-tips.md
Created November 4, 2012 22:50
Ruby Tips

Ruby Tips

Genel

  • Herşey bir Object (Nesne)
  • Her Object BasicObjectden türemiş. (Objective-C NSObject gibi...)
  • Object.methods ile o nesneye ait tüm method'lar
  • Object.methods.inspect string olarak method'lar
  • Mutlaka bir şey geriye döner. Hiçbir şey dönmese nil döner.

Style Guide