Skip to content

Instantly share code, notes, and snippets.

View borisd's full-sized avatar

Boris Dinkevich borisd

View GitHub Profile
@borisd
borisd / gist:8693335
Created January 29, 2014 17:57
app/assets/stylesheets/application.css
.media-grid {
width: 100%;
}
.media-grid > li {
float: left;
display: block;
margin-right: 20px;
margin-bottom: 20px;
@borisd
borisd / gist:8693475
Last active August 29, 2015 13:55
Homework

Images

  • Add image to User

Gui

  • Add a link to the sidebar to "Favorite cats"
  • Add like / unlike to cat's show page
  • Show like counter for each cat
  • Add 'mini-feed' to user's show page with first 3 cats and link to more
Checkout
---------
cd to the folder where you keep your projects
git clone [email protected]:bardelas/catz.git [folder_name]
cd [folder_name]
bundle update
rake db:migrate
rails s
@borisd
borisd / gist:8729510
Created January 31, 2014 10:12
Checkout new repository

Checkout

cd to the folder where you keep your projects

git clone [email protected]:bardelas/catz.git [folder_name]
cd [folder_name]
bundle update
rake db:migrate

rails s

# The amazing coffee
foo = (a,b) ->
a * b
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
@borisd
borisd / Notes.md
Last active February 8, 2016 08:56
Redux 101 Workshop Notes - By 500Tech.com
@borisd
borisd / API.md
Last active November 1, 2015 19:54
APIs for Redux 101 Workshop - by 500Tech.com
function *sample() {
yield take(STEP_1)
const result = yield call(someApi)
yield take(STEP_2)
...
yield take(STEP_3)
}