AWS region code | AWS region name | Number of AZs | AZ names |
---|---|---|---|
us-east-1 | Virginia | 4 | us-east-1a, us-east-1b, us-east-1c, us-east-1e |
us-west-1 | N. California | 2 | us-west-1a, us-west-1b |
us-west-2 | Oregon | 3 | us-west-2a, us-west-2b, us-west-2c |
eu-west-1 | Ireland | 3 | eu-west-1a, eu-west-1b, eu-west-1c |
eu-central-1 | Frankfurt | 2 | eu-central-1a, eu-central-1b |
ap-southeast-1 | Singapore | 2 | ap-southeast-1a, ap-southeast-1b |
ap-southeast-2 | Sydney | 2 | ap-southeast-2a, ap-southeast-2b, ap-southeast-2c |
ap-northeast-1 | Tokyo | 2 | ap-northeast-1a, ap-nort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createStore (reducer) { | |
var state; | |
var listeners = []; | |
const getState = () => state; | |
const dispatch = (action) => { | |
state = reducer(state, action); | |
listeners.forEach(listener => listener()); | |
}; | |
const subscribe = (listener) => { |
GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
- not equal
~=
- logical AND
&&
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This class Generates prime numbers up to a user specified | |
* maximum. The algorithm used is the Sieve of Eratosthenes. | |
* <p> | |
* Eratosthenes of Cyrene, b. c. 276 BC, Cyrene, Libya -- | |
* d. c. 194, Alexandria. The first man to calculate the | |
* circumference of the Earth. Also known for working on | |
* calendars with leap years and ran the library at Alexandria. | |
* <p> | |
* The algorithm is quite simple. Given an array of integers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
IFNULL(pcr.transid, | |
IFNULL(acr.gwsr, | |
IFNULL(ncr.ordernumber_timestamp,0))) auth , | |
NULLIF( (pcr.transid, IFNULL( acr.gwsr, IFNULL( ncr.ordernumber_timestamp, 0)) ), '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flipflap_card { | |
@include transition(all ease 0.5s); | |
.card_reveal { | |
@include transition(all ease 0.5s); | |
@include transform(rotateY(180deg)); | |
opacity: 0; | |
} | |
&:hover { | |
@include transform(rotateY(180deg)); | |
.card_reveal { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const store = createStore(counter); | |
const showCurrentState = () => { | |
console.log('Current State is: ',store.getState()) | |
} | |
showCurrentState(); | |
store.subscribe(showCurrentState); | |
store.dispatch({type: 'INC'}); | |
store.dispatch({type: 'INC'}); | |
store.dispatch({type: 'DEC'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const counter = (state =0 , action) => { | |
switch(action.type) { | |
case 'INC': | |
return state+1; | |
case 'DEC': | |
return state -1; | |
default: | |
return state; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
require 'restclient' | |
module MarketShit | |
def hello | |
puts "jelko" | |
end | |
def main |