Skip to content

Instantly share code, notes, and snippets.

View alishersadikov's full-sized avatar

Alisher Sadikov alishersadikov

View GitHub Profile

JS Exercisms - Alisher Sadikov

Here are 5 JavaScript exercisms, with each exercism starting with a link to my submission. In addition, 5 other solutions for each exercism are reviewed as well, with links and my comments.


1. Leap

My code: link to submission

@alishersadikov
alishersadikov / template-css-challenge-gist.md
Last active January 20, 2017 05:33 — forked from breethomas/template-css-challenge-gist.md
Turing 1611 CSS Challenges Warmups

Challenge 1

I had to change div1 display to inline-block, put the other two divs into a container and floated the whole container to the right.


Challenge 2

Set div2 margin to auto in order to center and gave absolute position to div3 with a right margin of 0.

###The following assignments were completed by me over the intermission week:

  1. JavaScript Topics Reading. I have read and commented on:
  • Chapters 3 & 17 from 'Speaking JavaScript';
  • Chapters 3, 5, 6 from 'Eloquent JavaScript';
  • JavaScript Garden.
  • Here is the link to submission page.
  1. JavaScript Exercisms. created a gist for 5 exercisms I worked on with 5 reviews of other people's solution per exercism. Here is the link to the gist with submissions and comments.

Exercism setup

Most likely you have homebrew installed on your machine, if not follow these instructions.

To install Exercism CLI, type the following on your terminal:

brew update && brew install exercism

To make sure it was installed correctly, run:

11/15/2017

Replace a string across files in a directory:

find . -type f | xargs sed -i "s/#{phone}/#{link_to phone, \"tel:#{phone_raw}\", class: 'active-states-state__link'}g"

11/20/2017

Open last command in default editor

fc

11/21/2017

@alishersadikov
alishersadikov / rails_setup.md
Created November 12, 2018 01:35 — forked from ryanflach/rails_setup.md
Common setup for a new Rails project
  1. rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
  • -d postgresql sets up the project to use PostgreSQL
  • --skip-turbolinks & --skip-spring creates a project that does not use turbolinks or spring
  • -T skips the creation of the test directory and use of Test::Unit
  1. In the Gemfile:
  • Available to all environments:
    • gem 'figaro' - store environment variables securely across your app (docs)
    • Uncomment gem 'bcrypt', '~> 3.1.7' if you will be hosting your own user accounts with passwords (docs)
  • Inside of group :test:
    • gem 'rspec-rails' - user rspec in place of minitest (docs)
@alishersadikov
alishersadikov / iterm2.md
Created April 15, 2019 19:15 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)