$ rails g model User
belongs_to
has_one
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
# post_loc.txt contains the json you want to post | |
# -p means to POST it | |
# -H adds an Auth header (could be Basic or Token) | |
# -T sets the Content-Type | |
# -c is concurrent clients | |
# -n is the number of requests to run in the test | |
ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/ |
Станции метро переехали сюда https://github.com/jarosluv/russian_infrastructure. |
#Angular 2 ( в глубину )
Слайды - https://db.tt/sBZvCTur
##Основные ссылки
##TypeScript ( сравнение ES6 и TypeScript, важные знания и особенности )
Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.
Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache
as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.
Check the gist's comments for any further tips and instructions, especially if you are running into problems!
Results after following the guide as of 11.01.2017 13:08:
/** | |
* Copyright (c) Matan Shukry | |
* All rights reserved. | |
*/ | |
import { UrlSegment, UrlSegmentGroup, Route } from '@angular/router'; | |
// export type UrlMatchResult = { | |
// consumed: UrlSegment[]; posParams?: { [name: string]: UrlSegment }; | |
// }; |
" Sections (use <Leader>s to quick jump to section) | |
" 1. Basic options [S_BASIC] | |
" 2. Plugins [S_PLUGINS] | |
" 3. Colors [S_COLORS] | |
" 4. Autocommands [S_AUTO] | |
" 5. Mappings [S_MAPPINGS] | |
" 6. Lightline [S_LIGHTLINE] | |
" 7. NeoMake [S_NEOMAKE] | |
" 8. LSP & similar things [S_LSP] | |
" 9. Firenvim (using NeoVim in browser) [S_FIRENVIM] |