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
@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
....................................................
@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'
+----------------------------------------------------+--------------------+-------------------+---------+-------------------+--------------------+
| 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 |
+----------------------------------------------------+--------------------+-------------------+---------+-------------------+---
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
@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}
@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]
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 / l2_firewall_STUDENT_ID.py
Created July 27, 2015 08:57
Template Firewall SDN Controller.
# Copyright 2011-2012 James McCauley
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
76.2
68.4
67.2
64.4
60.8
59.8
59.6
56.6
54.6
53.4
@Zhomart
Zhomart / capybara cheat sheet
Last active August 29, 2015 14:27 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')