One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| background: linear-gradient(231deg, #1a1a1a, #000000); | |
| background-size: 400% 400%; | |
| -webkit-animation: AnimationName 15s ease infinite; | |
| -moz-animation: AnimationName 15s ease infinite; | |
| animation: AnimationName 15s ease infinite; | |
| @-webkit-keyframes AnimationName { | |
| 0%{background-position:0% 51%} | |
| 50%{background-position:100% 50%} |
| <div id="fb-root"></div> | |
| <script> | |
| window.fbAsyncInit = function() { | |
| FB.init({ | |
| appId : '[Your Application ID]', | |
| xfbml : true, | |
| version: 'v2.2' | |
| }); | |
| }; |
| <div id="fb-root"></div> | |
| <script>(function(d, s, id) { | |
| var js, fjs = d.getElementsByTagName(s)[0]; | |
| if (d.getElementById(id)) return; | |
| js = d.createElement(s); js.id = id; | |
| js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.2"; | |
| fjs.parentNode.insertBefore(js, fjs); | |
| }(document, 'script', 'facebook-jssdk'));</script> |
| CREATE TABLE `cities` ( | |
| `id` Int( 11 ) AUTO_INCREMENT NOT NULL, | |
| `name` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL, | |
| PRIMARY KEY ( `id` ) ) | |
| CHARACTER SET = utf8 | |
| COLLATE = utf8_unicode_ci | |
| ENGINE = InnoDB | |
| AUTO_INCREMENT = 82; | |
| INSERT INTO `cities` (`id`,`name`) VALUES ( 1,'Adana' ); |
| # this scrubs emoji sequences from a string - i think it covers all of them | |
| def strip_emoji ( str ) | |
| str = str.force_encoding('utf-8').encode | |
| clean_text = "" | |
| # emoticons 1F601 - 1F64F | |
| regex = /[\u{1f600}-\u{1f64f}]/ | |
| clean_text = str.gsub regex, '' |
| unless Rails.env.production? | |
| connection = ActiveRecord::Base.connection | |
| connection.tables.each do |table| | |
| connection.execute("TRUNCATE #{table}") unless table == "schema_migrations" | |
| end | |
| sql = File.read('db/import.sql') | |
| statements = sql.split(/;$/) | |
| statements.pop |
| -- Turkce isimler sozlugu twitter : http://twitter.com/tserpico | |
| CREATE TABLE `isimler` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `isimler` varchar(255) DEFAULT NULL, | |
| `cinsiyet` varchar(255) DEFAULT NULL COMMENT 'erkek : E , kadın : K , uniseks : U', | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB; | |
| -- ---------------------------- |