This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
# | |
# .screenrc - GNU screen user configuration file | |
# | |
# $Id: .screenrc 190 2010-04-17 07:54:54Z yoshikaw $ | |
# | |
# @see http://www.informatik.uni-hamburg.de/RZ/software/screen/screen_toc.html | |
# @see http://www.limy.org/program/screen_command.html | |
# | |
# Escape key is C-t, literal is a. |
literally always have to look up the meaning of :limit in migrations when it comes to integer values. Here's an overview. Now let's memorise it (oh, this works for MySQL, other databases may work differently): | |
:limit Numeric Type Column Size Max value | |
1 tinyint 1 byte 127 | |
2 smallint 2 bytes 32767 | |
3 mediumint 3 byte 8388607 | |
nil, 4, 11 int(11) 4 byte 2147483647 | |
5..8 bigint 8 byte 9223372036854775807 | |
Note: by default MySQL uses signed integers and Rails has no way (that I know of) to change this behaviour. Subsequently, the max. values noted are for signed integers. |
{ | |
"cmd": ["javac", "$file_name"], | |
"cmd": ["java", "$file_base_name"], | |
"working_dir": "${project_path:${folder}}", | |
"selector": "source.java" | |
} |
from selenium import webdriver | |
def select_from_chosen(driver, id, value): | |
chosen = driver.find_element_by_id(id + '_chzn') | |
results = chosen.find_elements_by_css_selector(".chzn-results li") | |
found = False | |
for result in results: | |
if result.text == value: |
// cesar encrypt | |
var msg = "quisieraquelaclaseseatemprano"; | |
var letters = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","ñ","o","p","q","r","s","t","u","v","w","x","y","z" ]; | |
var a = 3; | |
var b = 5; | |
var result = [] | |
for (var i = 0; i < msg.length ; i ++){ | |
for(var j = 0; j < letters.length ; j ++) { | |
if(msg[i] == letters[j]) { var p=((j*a+b) % 27 ); result.push(letters[p]); } |
<script type="text/ng-template" id="one.html"> | |
<div>This is first template</div> | |
</script> | |
<script type="text/ng-template" id="two.html"> | |
<div>This is second template</div> | |
</script> |
##Google Interview Questions: Product Marketing Manager
------------------------------- ------------------ Django -------------------- | Browser: GET /udo/contact/2 | === wsgi/fcgi ===> | 1. Asks OS for DJANGO_SETTINGS_MODULE | ------------------------------- | 2. Build Request (from wsgi/fcgi callback) | | 3. Get settings.ROOT_URLCONF module | | 4. Resolve URL/view from request.path | # url(r'^udo/contact/(?P<id>\w+)', view, name='url-identifier') | 5. Apply request middlewares | # settings.MIDDLEWARE_CLASSES
require "sinatra/base" | |
require "sinatra/namespace" | |
require "multi_json" | |
require "api/authentication" | |
require "api/error_handling" | |
require "api/pagination" | |
module Api | |
class Base < ::Sinatra::Base |