Skip to content

Instantly share code, notes, and snippets.

View vladCovaliov's full-sized avatar
📚

Vlad Covaliov vladCovaliov

📚
View GitHub Profile
@vladCovaliov
vladCovaliov / ruby_tzinfo_list.rb
Created July 18, 2019 05:11
The list of time zone identifiers in Ruby TZInfo
"Africa/Abidjan",
"Africa/Accra",
"Africa/Addis_Ababa",
"Africa/Algiers",
"Africa/Asmara",
"Africa/Bamako",
"Africa/Bangui",
"Africa/Banjul",
"Africa/Bissau",
"Africa/Blantyre",
/*
Let's make MyTime Awesome
*/
/*------------------------------------*\
MAIN
\*------------------------------------*/
.lets-party {
# Ruby Version: 2.3.1p112
# Author: Vlad Covaliov
# Date: 06.09.2016
require 'test/unit'
module ArrayUtils
# Flatten nested array using a recursive method. Non-Destructive Method
#
# @param [Array, #read] content we want to flatten
@vladCovaliov
vladCovaliov / rails_resources.md
Last active August 29, 2015 14:06 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@vladCovaliov
vladCovaliov / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<video id="movie" width="720" height="480" preload="none"
poster="" controls>
<source src="https://s3.amazonaws.com/av-jwplayer/123.mp4" type="video/mp4">
</video>
<div id='mediaplayer'></div>
<script type="text/javascript">
jwplayer('mediaplayer').setup({
file: "rtmp://s2l38r63zpp53t.cloudfront.net/cfx/st/123.mp4",