Skip to content

Instantly share code, notes, and snippets.

View Zhomart's full-sized avatar
🏠
Working from home

Zhomart Mukhamejanov Zhomart

🏠
Working from home
View GitHub Profile
export ANDROID_HOME=/Applications/Android\ Studio.app/sdk
export LOCAL_SBIN="/usr/local/sbin"
export WORDNET_BIN="/usr/local/WordNet-3.0/bin"
export HEROKU_BIN="/usr/local/heroku/bin"
export PATH="$HOME/bin:/usr/local/bin:$PATH:$HEROKU_BIN:$LOCAL_SBIN:$WORDNET_BIN"
export PATH="$PATH:/Applications/Android Studio.app/sdk/platform-tools"
export PATH="$PATH:/Users/zhomart/Downloads/tree-tagger-MacOSX-3.2-intel/cmd"
export PATH=$PATH:/Users/zhomart/Applications/activator-1.2.12-minimal
@Zhomart
Zhomart / gunicorn.stderr.log
Created February 25, 2015 06:33
"tail logs/gunicorn.stderr.log"
Trying import local.py settings...
Monkey patching...
Trying import local.py settings...
Monkey patching...
WARNING Property: Unknown Property name. [6:51: -webkit-text-size-adjust]
WARNING Property: Unknown Property name. [6:82: -ms-text-size-adjust]
WARNING Property: Unknown Property name. [7:23: mso-table-lspace]
WARNING Property: Unknown Property name. [7:45: mso-table-rspace]
WARNING Property: Unknown Property name. [8:17: -ms-interpolation-mode]
ERROR Property: Invalid value for "CSS Level 2.1" property: 0.8rem 3rem [173:17: padding]
@Zhomart
Zhomart / taiga-sign-up-email
Created February 25, 2015 06:30
Subject: You've been Taigatized!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>You have been Taigatized</title>
<style type="text/css">.bodyContent a:link {color:#699b05;font-weight:normal;text-decoration:underline}
..bodyContent a:visited {color:#699b05;font-weight:normal;text-decoration:underline}
..bodyContent a.button:hover {background:#aad400}
..social-links a:link {color:#699b05;font-weight:normal;text-decoration:underline;text-align:center;margin:0 5px}
..social-links a:visited {color:#699b05;font-weight:normal;text-decoration:underline;text-align:center;margin:0 5px}
Please now follow the link back to [[Wikipedia:Articles for creation]].
{{afc mass}}
==[[Centereach Boys Track]]==
{{afc top}}
<!-- IMPORTANT! In the box above, put the name of your proposed article. Place [[ and ]] around it, [[like this]]. -->
<!-- Place the initial content of your article below this line. USE YOUR OWN WORDS; do not copy content from another website. -->
Centereach boys track is best known for there 158 dual meet winning streak beginning in 1972, under the leadership of Coach Burkley and Schneider. The team went 27 seasons undefeated. This streak ended in 1998, in a dual meet against Bay Shore High School. Due to many coach changes and declining numbers, the team since Coach Burkley's resignation had not been fairing well. But in the 2006 track season under the leadership of Coach Jason Strom, William Gilmartin, and Vincent Rucci the track team had made noticable improvment. Athlete numbers increased, and so did the skill of the athletes. Unfortunately it had also been decide that se
+----------------------------------------------------+--------------------+-------------------+---------+-------------------+--------------------+
| pair | raw | distance | count | first_second | norm |
+----------------------------------------------------+--------------------+-------------------+---------+-------------------+--------------------+
| ["yellow painting", "bad taste"] | 0.0 | 100.0 | 0 | 7 * 915 | 100.0 |
+----------------------------------------------------+--------------------+-------------------+---------+-------------------+--------------------+
| ["close", "reces"] | 0.0 | 100.0 | 0 | 264371 * 8 | 100.0 |
+----------------------------------------------------+--------------------+-------------------+---------+-------------------+---
@Zhomart
Zhomart / Gemfile
Created November 17, 2014 18:47
Example of gemfile
source 'http://rubygems.org'
ruby '2.1.2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 4.1.7'
# Webserver
gem 'puma'
@Zhomart
Zhomart / gist:60efa929253f941643b3
Created October 31, 2014 19:51
ransack "rspec" results
$ RAILS=4-1-stable DB=sqlite3 rake
/Users/user/.rvm/rubies/ruby-2.1.2/bin/ruby -S rspec ./spec/ransack/adapters/active_record/base_spec.rb ./spec/ransack/adapters/active_record/context_spec.rb ./spec/ransack/configuration_spec.rb ./spec/ransack/dependencies_spec.rb ./spec/ransack/helpers/form_builder_spec.rb ./spec/ransack/helpers/form_helper_spec.rb ./spec/ransack/nodes/condition_spec.rb ./spec/ransack/nodes/grouping_spec.rb ./spec/ransack/predicate_spec.rb ./spec/ransack/search_spec.rb ./spec/ransack/translate_spec.rb --backtrace
================================================================================
Running specs against SQLite, ActiveRecord 4.1.7 and ARel 5.0.1...
================================================================================
..........................
FIXME: Search not detecting the `terms_and_conditions` attribute in
base_spec.rb, line 178: SELECT "people".* FROM "people" ORDER BY "people"."id" DESC
....................................................

# distances

aliens, point -> 96.05
rice, point -> 89.25
rice, aliens -> 99.56
planet, point -> 85.14
planet, aliens -> 95.46
planet, rice -&gt; 97.71

Pairs with distances

bikini, drinking -> 99.77
coughed, drinking -> 99.98
coughed, bikini -> 100.0
had, drinking -> 80.09
had, bikini -> 97.32
had, coughed -> 99.84
mess, drinking -> 98.84
mess, bikini -> 99.8
# pairs with distances

fit, sight -> 95.41
woman, sight -> 90.75
woman, fit -> 89.92
beach, sight -> 94.16
beach, fit -> 95.25
beach, woman -> 87.62
was, sight -&gt; 63.17