Skip to content

Instantly share code, notes, and snippets.

View emrekilinc's full-sized avatar
🎯
Focusing

Emre Kılınç emrekilinc

🎯
Focusing
View GitHub Profile
@emrekilinc
emrekilinc / CSS3 Animation - Background colour.markdown
Created September 12, 2015 11:49
CSS3 Animation - Background colour
bin,banka_kodu,banka_adi,type,sub_type,virtual,prepaid
413226,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,PLATINUM
444676,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,CLASSIC
444677,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,GOLD
444678,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,PLATINUM
453955,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
453956,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, GOLD
454671,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
454672,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
454673,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, BUSINESS
class String
def to_bool
return true if self == true || self =~ (/(true|t|yes|y|1)$/i)
return false if self == false || self.blank? || self =~ (/(false|f|no|n|0)$/i)
raise ArgumentError.new("invalid value for Boolean: \"#{self}\"")
end
end
@emrekilinc
emrekilinc / gist:8084913
Created December 22, 2013 16:25
Remove a file from git history
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch config/recipes/*' \
--prune-empty --tag-name-filter cat -- --all
git push origin master --force
rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --prune=now
git gc --aggressive --prune=now
@emrekilinc
emrekilinc / gist:8032167
Created December 19, 2013 00:15
Brand colors as less file
@instagram: #3f729b;
@facebook: #3b5998;
@twitter: #00acee;
@youtube: #c4302b;
@vimeo: #44bbff;
@vine: #00a478;
@pinterest: #c8232c;
@500px: #02adea;
@dribbble: #ea4c89;
@flickr: #0063dc;
@emrekilinc
emrekilinc / flat_colors.less
Created December 15, 2013 15:58
Flat UI colors less file
@turquoise: #1abc9c;
@greensea: #16a085;
@emerland: #2ecc71;
@nephritis: #27ae60;
@peterriver: #3498db;
@belizehole: #2980b9;
@amethyst: #9b59b6;
@wisteria: #8e44ad;
@wetasphalt: #34495e;
@midnightblue: #2c3e50;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
@emrekilinc
emrekilinc / gist:3231367
Created August 1, 2012 22:45
Best Font Smoothing
font: 100%/120% "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
text-size-adjust:none;
font-smoothing: antialiased;
-webkit-text-size-adjust:none;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;