Register Image Request. More...
Public Member Functions | |
| (id) | - init |
| Default constructor for a new RegisterImageRequest object. | |
| (id) | - initWithImageLocation: |
| Constructs a new RegisterImageRequest object. | |
| (void) | - addBlockDeviceMapping: |
| Adds a single object to blockDeviceMappings. | |
| (NSString *) | - description |
| Returns a string representation of this object; useful for testing and debugging. | |
Properties | |
| NSString * | imageLocation |
| The full path to your AMI manifest in Amazon S3 storage. | |
| NSString * | name |
| The name to give the new Amazon Machine Image. | |
| NSString * | descriptionValue |
| The description describing the new AMI. | |
| NSString * | architecture |
| The architecture of the image. | |
| NSString * | kernelId |
| The optional ID of a specific kernel to register with the new AMI. | |
| NSString * | ramdiskId |
| The optional ID of a specific ramdisk to register with the new AMI. | |
| NSString * | rootDeviceName |
The root device name (e.g., /dev/sda1 ). | |
| NSMutableArray * | blockDeviceMappings |
| The block device mappings for the new AMI, which specify how different block devices (ex: EBS volumes and ephemeral drives) will be exposed on instances launched from the new image. |
Register Image Request.
| - (void EC2RegisterImageRequest.)addBlockDeviceMapping: | (EC2BlockDeviceMapping *) | blockDeviceMapping |
Adds a single object to blockDeviceMappings.
This function will alloc and init blockDeviceMappings if not already done.
| - (NSString * EC2RegisterImageRequest.)description |
Returns a string representation of this object; useful for testing and debugging.
| - (id EC2RegisterImageRequest.)init |
Default constructor for a new RegisterImageRequest object.
Callers should use the property methods to initialize this object after creating it.
| - (id EC2RegisterImageRequest.)initWithImageLocation: | (NSString *) | theImageLocation |
Constructs a new RegisterImageRequest object.
Callers should use properties to initialize any additional object members.
| theImageLocation | The full path to your AMI manifest in Amazon S3 storage. |
- (NSString *) architecture [read, write, retain] |
The architecture of the image.
Valid Values: i386
, x86_64
- (NSString *) name [read, write, retain] |
The name to give the new Amazon Machine Image.
Constraints: 3-128 alphanumeric characters, parenthesis (()
), commas (,
), slashes (/
), dashes (-
), or underscores(_
)
- (NSString *) ramdiskId [read, write, retain] |
The optional ID of a specific ramdisk to register with the new AMI.
Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk.


Vx_t0 = 50;
Vy_t0 = 0;
r_t0 = 0;
psi_t0 = 0;
xi_t0 = 0;
yi_t0 = 0;
tf = 4;
time = [0:.01:tf]';
u = ones(size(time,1),1)*[-10000 -10000 0];
options = odeset('RelTol',1e-4,'AbsTol',[1e-4 1e-4 1e-5 1e-4 1e-4 1e-5]);
[sim_time y] = ode45(@car_dynamics, ...
[0 tf],...
[Vx_t0 Vy_t0 r_t0 psi_t0 xi_t0 yi_t0], ...
options, u, time);
fric_solution.time = sim_time;
fric_solution.state = y(:,1:6);
fric_solution.control = interp1(time,u,sim_time,'linear');
fric_solution.Hamiltonian = sign(sim_time);
sample = 10;
car_specs.scale = 1;
plot_results(sample, car_specs, fric_solution);
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.
Warning: ARROW changed the axis limits when adding the arrow.
Call ARROW FIXLIMITS to reset them now.


Pick you autumn-style clothing. Watch your hair.. It is going t be windy!
Perfect workday! Or stay home day. Or do groceries day.


An axel action that returns a results shown on the html page
The execution context is a container for storing data content and values. These can then be retrieved on the
pages using the ${...} notation. As an example ${current.time} will retrieve the current time.


--- layout: post authors: ["Raniere Silva"] title: "2015 Election: Raniere Silva" date: 2015-01-12 time: "06:00:00" tags: ["Software Carpentry Foundation", "Election 2015"] ---
A year and a half ago I read the announcement of the Mozilla Science Lab by Mark Surman and that way I discovered Software Carpentry. Months later, I was participating in the 6th round of Instructor Training, and since then I have:
Volunteering with Software Carpentry is one of the things that I'm really proud of doing and I'd be honored be a member of the SCF Steering Committee.
I'm almost sure that I'm the youngest member applying for the Steering Committee and because of it I didn't have amazing things to say about myself. I'm finishing my Bachelor in Apply Mathematics at the University of Campinas after trying and failing to get some undergraduate and graduate colleagues to adopt better research practices like scripting their data analyses in whatever tool they prefer instead of write down on paper by hand all the steps needed for analysing the effect of changes in a linear programming problem solver.
As a member of the SCF Steering Committee I'd like to focus on increasing our activities in Latin America, specially Brazil, by:
If you'd like to learn more about me:
If you have any questions, feel free to leave a comment here or send me an email.


Lullaby
Error testing
Sleep Timer
Pause in
minutes
Lullaby will pause this service in
0:00:59
Cancel


JsonInf – reads information about some object in JSON file¶
JsonInf can reads information from JSON file and show the string from object in this file. Uses libjson-c-dev – JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects.
warning: unhandled cursor CursorKind.INCLUSION_DIRECTIVE takejson.h
-
char *
conc
(char *s1, char *s2)¶ conc() - Makes concatenation.
- Parameters
s1 – The first string.
s2 – The second string.
This function makes concatenation of two strings and adds in the end “/”.
Context: Concatenates link string and parameter string. Return: String which contains new link.
-
int
set_count
(char *name)¶ set_count() - Set count of objects from swapi.dev.
- Parameters
name – The name of resource which count is needed.
This function set count of objects from resource which locats in swapi.dev.
Context: If object not found shows Error and return 0. Return: count of object.
-
char *
get_atr
(char *atr_name, char *buf)¶ get_atr() - Get information from json attribute.
- Parameters
atr_name – The name of attribute from which information is taken.
buf – The buffer of json file from which attribute is taken.
This function uses buffer of json file and takes from them attribute information. The attribute has string information.
- Context: If json file doesn’t have attribute this function shows Error and
return string “none”.
Return: String of attribute information.
-
char *
get_search_link
(char *link, char *name)¶ get_search_link() - Makes search link.
- Parameters
link – From this link makes search link.
name – The name of thing which is searched.
This function creates a search link. Uses the base link, the string “?search=” and the name.
Return: String of the search link.
-
char *
search_name
(char *atr_name, char *buf)¶ search_name() - Gets information about found name.
- Parameters
atr_name – The name of attribute from which information is taken.
buf – The buffer of json file from which attribute is taken.
This function uses buffer of json file and takes from them attribute information. The attribute has string information. The buffer took information from search reference. A result of searching has array of found objects. This function take string of the object and take information from this string about attribute.
- Context: If json file doesn’t have attribute or has not found objects after
searching this function shows Error and return string “none”.
Return: String of attribute information.


JavaScript is one of the most popular languages used right now but the question asked is why? I'm here to tell you JavaScript has many merits that on there own make the language handy but combined into one they make it simply undeniable in the current marketplace. It is easy to learn making it widespread and is supported by every browser. One of the reasons it is so easy to learn in that it is easy to edit and incase you do make mistakes it tells you where it errors so debugging is not such a chore as other languages. The language itself has many toolkits available and it makes the browsers do the heavy lifting when loading freeing up the server for other tasks and minimizing memory issues.
No language is perfect however. JavaScript is limited in that it is not as flexable as other languages such as Ruby and not as easy to read. Overall though JavaScript is here to dominate for the forseeable future.


Organizing¶
With a large number of notes, you probably don’t want to rely solely on your folder hierarchy for organizing notes - tags are crucial. But still, many desktop apps and CLI tools are oriented around the filesystem, so you do want a convenient directory structure. And what’s convenient can change over time.
The notesdir organize
command reorganizes your files based on rules you define.
The rules can set the file’s path based on things like its title, creation date, whether it contains certain tags, etc.
This makes it easy to keep a consistent directory structure and also change it quickly.
Whenever it moves a file, it also updates links to and from that file - see Link Management.
Configuration¶
The notesdir.conf.RepoConf.root_paths
and notesdir.conf.RepoConf.ignore
config items determine which files will be processed.
The notesdir.conf.NotesdirConf.path_organizer
determines what rules will be applied.
You supply a function which will be called for each file, and return the path at which the file belongs.
(You can also return a notesdir.models.DependentPathFn
to indicate that the final location depends on whatever the final location for another file ends up being.)
The docs for path_organizer
contain a couple examples and information about some helper functions you can use.
Below is an example from my own config.
This sets up the following rules:
Using
notesdir.conf.rewrite_name_using_title()
, if a title is defined in the file’s metadata, the filename is based on that title, with special characters removedUsing
notesdir.conf.resource_path_fn()
, if a file is inside a.resources
directory (which I use to store attachments for notes), it gets moved whenever the note it’s attached to gets movedFiles tagged
active
go in a particular directoryFiles tagged
archive
orsource-web
go in other specific directories, in subdirectories organized by the year and month of each file’s creation date (based on the metadata stored inside it, or else filesystem metadata)Other files are left where they are
import os.path
root ='/Users/jacob/Zettel'
personal_root = f'{root}/personal'
personal_active = f'{personal_root}/active'
personal_archive = f'{personal_root}/archive'
personal_sources = f'{personal_root}/sources'
personal_sources_web = f'{personal_sources}/web'
def created_path(info, folder, name):
created = info.guess_created()
return os.path.join(folder, created.strftime('%Y'), created.strftime('%m'), name)
def path_organizer(info):
path = rewrite_name_using_title(info)
resource = resource_path_fn(path)
if resource:
return resource
if path.startswith(personal_root):
if 'active' in info.tags:
return os.path.join(personal_active, os.path.basename(path))
if 'archive' in info.tags:
return created_path(info, personal_archive, os.path.basename(path))
if 'source-web' in info.tags:
return created_path(info, personal_sources_web, os.path.basename(path))
return path
conf.path_organizer = path_organizer
Running¶
To apply the organizational rules, just run:
notesdir organize
If you want to see what it’s going to do without actually doing it, pass the --preview
option.


Benchmark (100 Items)
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎
🥩
🥚
🥛
👀
📎


{% include 'head.html' %}
Set Handler ID
Dog ID
Document ID
Document Type
Set document status:
Uploaded Processed


Stevens carries Colorado St. past Loyola Marymount 74-64
LOS ANGELES (AP) - Isaiah Stevens had 21 points as Colorado State defeated Loyola Marymount 74-64 on Saturday night.
Stevens shot 9 for 10 from the foul line.
Nico Carvacho had 17 points for Colorado State (3-1). Kris Martin added 11 points and six rebounds.
TOP STORIES
George Soros group asks Fox News to ban guest who claimed billionaire controls State Dept.
Nancy Pelosi goes for slam dunk -- and crashes to court
Franklin Graham calls on nation to pray for Trump as impeachment effort gains speed
Eli Scott had 16 points and seven assists for the Lions (1-2). Ivan Alipiev added 11 points. Parker Dortch had seven rebounds.
Colorado State plays Arkansas State at home on Wednesday. Loyola Marymount plays Air Force on Thursday.
More AP college basketball: https://apnews.com/Collegebasketball and https://twitter.com/AP_Top25
This was generated by Automated Insights, http://www.automatedinsights.com/ap, using data from STATS LLC, https://www.stats.com
Sign up for Daily Newsletters
Copyright © 2019 The Washington Times, LLC.
Please read our comment policy before commenting.


Custom Theme
SCSS variables to customize the color scheme
SCSS Variables
Simply edit the /theme.scss file and update these SCSS variables:
@import '~@angular/material/theming';
@import '~@covalent/core/theming/all-theme';
@import '~@covalent/markdown/markdown-theme';
@import '~@covalent/highlight/highlight-theme';
// Plus imports for other components in your app.
// Define a custom typography config that overrides the font-family
// or any typography level.
$typography: mat-typography-config(
$font-family: 'Roboto, monospace',
$headline: mat-typography-level(32px, 48px, 700)
);
@include mat-core($typography); // $typography is an **optional** argument for the mat-core
// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
// hue.
$primary: mat-palette($mat-blue, 700);
$accent: mat-palette($mat-orange, 800, A100, A400);
// The warn palette is optional (defaults to red).
$warn: mat-palette($mat-red, 600);
// Create the theme object (a Sass map containing all of the palettes).
$theme: mat-light-theme($primary, $accent, $warn);
// Include theme styles for core and each component used in your app.
// Alternatively, you can import and @include the theme mixins for each component
// that you are using.
@include angular-material-theme($theme);
@include covalent-theme($theme, $typography); // $typography is an **optional** argument for the covalent-theme
@include covalent-markdown-theme($theme);
@include covalent-highlight-theme();
Color palettes and hues follow the official
Material Design Spec.
Theming Docs


As you may or may not know, I very much prefer to work remotely. I don’t dislike co-located work, but I value more highly being home with the kids in the summer and when they get home from school. Also, while I enjoy driving, I loathe commuting. Beyond all of that, I believe that there are numerous advantages to distributed teams –for both the business and the individual– that are often overlooked by those who have not worked this way.
It’s certainly not the only way to be successful, but it can be a good one.
Accordingly, I haven’t gone into an office more than twice per week since 2012, and even worked remotely at times before that. Over that time, I’ve seen poor distributed teams, of course, but I’ve more frequently seen co-located teams with poor performance.
My hope is that distributed teams will become more generally embraced for knowledge work going forward, so when today I was contacted about a job opportunity, the fact that it is prominently marked as ‘non-remote’ struck me frustratingly hilarious given these excerpts from the posting.
We believe work is not a place, but rather a thing you do. Our technology revolves around this core philosophy. We are relentlessly committed to helping people work and play from anywhere, on any device.
We empower the original mobile device: YOU!
…is a cloud company that enables mobile workstyles.
…by allowing people to work whenever, wherever, and however they choose.
Further, Wikipedia has a page that says this company “…creates software that allows the individuals of an enterprise to work and collaborate remotely…”
But still they shun internal distributed teams?
🤦♀


Note: queries have about a 5 second delay between responses.
Our team's heroes / Recommended heroes:
Opposing team's heroes:
Chance we win based on picks: __%


Trading Fundamentals Crash Course Signins
@mit.edu
@mit.edu
Thanks for signing in, {{last_kerberos}}!


Under this encryption algorithm, the key entered is added character by character (byte by byte) to the data to be encrypted. Here addition modulo 256 is used, i.e. so that any carry-overs are ignored. The key is applied cyclically (as under the Vigenère encryption algorithm and also with the Exclusive-OR), i.e. once all the characters (bytes) of the key have been used, the algorithm reverts to the first character until the text has been completely encrypted.
To decrypt the text, the characters of the key have to be subtracted from the encrypted text modulo 256.
If one knows the characters which occur most frequently in the plaintext, it is then possible to work out the key with the aid of a computer (and hence also the plaintext) (see Automatic analysis, Byte Addition).
The key used for Binary Addition is entered in the Key entry dialog.
This encryption algorithm can be easily broken with a Ciphertext-Only attack (see Automatic analysis, Byte Addition). An example of this will be found in the Examples chapter.


vignettes/se-la-county-data.Rmd
se-la-county-data.Rmd
First, we’ll need to install a set of packages that will be useful for the analysis. If you are a new user, you will need to manually run the following commands in a new in an R
session before running the vignette code below:
# Install the required packages
install.packages(pkgs = c(
"glue", "knitr", "tidyverse", "kableExtra",
"remotes", "patchwork"
))
# Install the latest version of the maars package
remotes::install_github("shamindras/maars", force = TRUE)
# Load the required packages
library(glue)
library(knitr)
library(maars)
library(tidyverse)
library(kableExtra)
library(remotes)
library(patchwork)
Note that we use the pipe (%>%
) operator loaded from the tidyverse
package as part of the tidy maars
inferential workflow. We will also set a global random seed for reproducibility purposes.
set.seed(25422267)
We will refer to all other functions explicitly using the package::function()
reference method to avoid any function reference source ambiguity.
In this vignette, we will reproduce the results of Table 1 in (Buja et al. 2019), as shown below:
Let’s first load the LA County Homeless persons data as used in (Buja et al. 2019) and briefly examine it. The dataset is included in the maars
package for convenience.
# LA County source data - already built into maars
data("la_county", package = "maars")
dim(x = la_county)
#> [1] 505 7
So the dataset is relatively small with 505 observations and 7 features.
Let’s view the data interactively, with an emphasis on the first few rows. This is to get a better understanding of the structure of the la_county
tibble
.
la_county %>%
head(x = .) %>%
knitr::kable(x = ., format = "html", digits = 2, align = "c") %>%
kableExtra::kable_styling(position = "center") %>%
kableExtra::kable_classic(kable_input = .)
| StreetTotal | MedianInc1000 | PercVacant | PercMinority | PercResidential | PercCommercial | PercIndustrial |
|---|---|---|---|---|---|---|
| 2 | 41.58 | 2.58 | 30.47 | 86.68 | 12.23 | 0.00 |
| 0 | 53.48 | 2.84 | 16.92 | 12.09 | 0.26 | 0.00 |
| 6 | 35.24 | 2.03 | 64.39 | 15.83 | 5.66 | 4.31 |
| 4 | 36.68 | 3.13 | 63.71 | 29.81 | 3.69 | 4.68 |
| 5 | 30.87 | 1.58 | 61.50 | 72.81 | 20.37 | 0.00 |
| 18 | 50.71 | 2.54 | 46.61 | 42.66 | 19.33 | 0.00 |
The la_county
dataset is already in tidy format (Wickham 2014).
We now fit a linear model of the count of homeless people (StreetTotal
) as the response variable, against the other covariates using Ordinary Least Squares (OLS). As usual, this can be done via the stats::lm()
function.
mod_fit <- stats::lm(formula = StreetTotal ~ ., data = la_county)
The most important thing to note at this stage is that the inference provided by the mod_fit
(i.e. lm
) object is based on the typical well-specified assumption setting. That is this fitted linear model assumes the linearity of the conditional expectation and the homoscedasticity of errors.
The goal of maars
is to take the same OLS estimates for the fitted model parameters but augment the inference to be based in the model misspecified setting. This is done in the following sections, and drives the remainder of this reproducibility analysis.
As done in (Buja et al. 2019) let’s estimate the variance of the regression coefficients for the fitted model using model misspecified assumptions using the following approaches:
To do so, we will use the comp_var
function in maars
. This arguments in this function are the output of stats::lm()
(i.e., mod_fit
) and the types of estimators (of the variance) that we wish to use, with the specific parameters. The sandwich variance is always computed by default so there is no need to specify it.
mms_fit <- comp_var(
mod_fit = mod_fit,
boot_emp = list(B = 10^3),
boot_mul = list(B = 10^3, weights_type = "rademacher"),
boot_res = list(B = 10^3)
)
The resulting model misspecified linear model fit i.e. mms_fit
is now a (maars_lm, lm) object. With this object constructed, we now have all of the ingredients necessary to reproduce Table 1 of the (Buja et al. 2019) paper.
In order to reproduce Table 1, we will only need the empirical bootstrap and sandwich estimates. In maars
, the estimates, standard errors, \(t\)-statistics, and \(p\)-values can be obtained in a tidy
output format via the function get_summary
. This function returns the sandwich, again, returned by default, unless specified otherwise. Let’s first extract the summary of mms_fit
.
# get output
mms_summary <- get_summary(mms_fit, sand = TRUE,
boot_emp = TRUE,
well_specified = TRUE)
# print heading
head(mms_summary) %>%
knitr::kable(x = ., format = "html", digits = 3, align = "c") %>%
kableExtra::kable_styling(position = "center") %>%
kableExtra::kable_classic(kable_input = .)
| term | estimate | stat_type | stat_val | var_type_abb |
|---|---|---|---|---|
| (Intercept) | 0.760 | std.error | 22.767 | lm |
| (Intercept) | 0.760 | statistic | 0.033 | lm |
| (Intercept) | 0.760 | p.value | 0.973 | lm |
| MedianInc1000 | -0.183 | std.error | 0.187 | lm |
| MedianInc1000 | -0.183 | statistic | -0.977 | lm |
| MedianInc1000 | -0.183 | p.value | 0.329 | lm |
As we can see, the output is in tidy tibble
format. This makes it much more readily amenable for additional transformations using the tidyverse
set of packages.
We can now reformat the output of get_summary
to make it more easily comparable to Table 1 in the paper. This can be achieved by first dropping the p-values (which are not needed), followed by the computation of the ratios of the variances, and last by an application of the tidyr::pivot_wider()
function. We also need add in the required \(\LaTeX\) code for the column names to reproduce values and formatting as in the original table.
mms_summary %>%
# drop the p-values
dplyr::filter(stat_type != "p.value") %>%
# compute the variances
tidyr::pivot_wider(
names_from = c(stat_type, var_type_abb),
values_from = stat_val
) %>%
# compute the ratios
dplyr::mutate(
ratio_emp_vs_lm = std.error_emp / std.error_lm,
ratio_sand_vs_lm = std.error_sand / std.error_emp,
ratio_sand_vs_emp = std.error_sand / std.error_emp
) %>%
# reorder the variables
dplyr::select(
term,
estimate,
starts_with("std.error"),
starts_with("ratio"),
starts_with("statistic")
) %>%
# rename the variables
purrr::set_names(x = ., nm = c(
"Term", "$\\widehat{\\beta}_{j}$",
"$SE_{\\text{lin}}$",
"$SE_{\\text{boot}}$",
"$SE_{\\text{sand}}$",
"$\\frac{SE_{\\text{boot}}}{SE_{\\text{lin}}}$",
"$\\frac{SE_{\\text{sand}}}{SE_{\\text{lin}}}$",
"$\\frac{SE_{\\text{sand}}}{SE_{\\text{boot}}}$",
"$t_{\\text{lin}}$",
"$t_{\\text{boot}}$",
"$t_{\\text{sand}}$"
)) %>%
knitr::kable(
x = ., format = "html", digits = 3,
align = "c", escape = TRUE
) %>%
kableExtra::kable_styling(position = "center") %>%
kableExtra::kable_classic(kable_input = .)
| Term | \(\widehat{\beta}_{j}\) | \(SE_{\text{lin}}\) | \(SE_{\text{boot}}\) | \(SE_{\text{sand}}\) | \(\frac{SE_{\text{boot}}}{SE_{\text{lin}}}\) | \(\frac{SE_{\text{sand}}}{SE_{\text{lin}}}\) | \(\frac{SE_{\text{sand}}}{SE_{\text{boot}}}\) | \(t_{\text{lin}}\) | \(t_{\text{boot}}\) | \(t_{\text{sand}}\) |
|---|---|---|---|---|---|---|---|---|---|---|
| (Intercept) | 0.760 | 22.767 | 15.909 | 16.627 | 0.730 | 0.957 | 0.957 | 0.033 | 0.048 | 0.046 |
| MedianInc1000 | -0.183 | 0.187 | 0.105 | 0.114 | 0.606 | 0.923 | 0.923 | -0.977 | -1.745 | -1.610 |
| PercVacant | 4.629 | 0.901 | 1.287 | 1.406 | 1.561 | 0.915 | 0.915 | 5.140 | 3.597 | 3.292 |
| PercMinority | 0.123 | 0.176 | 0.162 | 0.163 | 0.924 | 0.997 | 0.997 | 0.701 | 0.761 | 0.759 |
| PercResidential | -0.050 | 0.171 | 0.108 | 0.112 | 0.651 | 0.972 | 0.972 | -0.292 | -0.462 | -0.449 |
| PercCommercial | 0.737 | 0.273 | 0.388 | 0.396 | 1.450 | 0.980 | 0.980 | 2.700 | 1.901 | 1.862 |
| PercIndustrial | 0.905 | 0.321 | 0.579 | 0.586 | 1.823 | 0.988 | 0.988 | 2.818 | 1.565 | 1.546 |
Voila! We have reproduced Table 1 in (Buja et al. 2019). Note that there are minor differences due to slightly different parameters and random seeds used in our analysis to the original paper.
We could also obtain the other types of estimates of the variance (i.e., from residual and multiplier bootstraps) that we computed in comp_var()
in tidy format by specifying these additional arguments within get_summary()
.
We may want to compare some of the estimates that we obtained through comp_var()
in a plot. Confidence intervals and normality of the (bootstrap) estimates represent two (arguably) interesting statistics the data scientist/researcher may want to look at. The corresponding plots are returned by default when plot
is called on an object of class maars_lm
, together with six other “typical” stats::lm()
plots. The plots can be visualized sequentially calling plot
on an object of class maars_lm, lm (e.g., plot(mms_fit, which=c(1,2,7)
). Alternatively, we can store them in a list via get_plot()
, as we do below.
mms_plots <- get_plot(mms_fit)
Let’s first look at the six “typical” stats::lm()
plots. We will do some minor formatting of the plot text size. Since the output is a list
we can simply do this in a single pipeline using the relevant purrr
and patchwork
functions.
1:6 %>%
purrr::map(~ purrr::pluck(mms_plots, .) +
ggplot2::theme(plot.title = ggplot2::element_text(size = 9))) %>%
patchwork::wrap_plots(., ncol = 3, nrow = 2)
Let’s compare confidence intervals for the regression coefficients based on the different types of estimators of the variance. Since all maars
plot outputs are by default ggplot
objects, we can adjust the plot legend and other formats easily, as demonstrated below.
purrr::pluck(mms_plots, "p7") +
ggplot2::theme(legend.position = "bottom") +
ggplot2::guides(colour = ggplot2::guide_legend(nrow = 2))
Let’s now visualize the distribution of the bootstrap estimate to check whether it well approximates the normal distribution.
purrr::pluck(mms_plots, "p8")


--- layout: data_model title: ICMPv4InfoMessageType this_version: 1.0.1 ---
ICMP informational messages include echo request/reply, timestamp request/reply, and address mask request/reply.
| Field Name | Type | Description |
|---|---|---|
| Echo_Reply1..1 | ICMPv4EchoReplyType |
Echo reply/request messages are also known as "ping". The Info_Message_Content field contains an identifier and sequence number which together form the "quench" for echo reply and echo request. Fields specific to an echo reply message are given as elements to this echo reply field (type=0). |
| Echo_Request1..1 | ICMPv4EchoRequestType |
Echo reply/request messages are also known as "ping". The Info_Message_Content field contains an identifier and sequence number which together form the "quench" for echo reply and echo request. Fields specific to an echo request message are given as elements to this echo request field (type=8). |
| Timestamp_Request1..1 | ICMPv4TimestampRequestType |
A timestamp request is an ICMP informational message used for time synchronization. |
| Timestamp_Reply1..1 | ICMPv4TimestampReplyType |
A timestamp reply is an informational ICMP message which replies to a timestamp request message. |
| Address_Mask_Request1..1 | ICMPv4AddressMaskRequestType |
An address mask request is an ICMP informational message (query message) normally sent by a host to a router in order to obtain an appropriate subnet mask (type=17). |
| Address_Mask_Reply1..1 | ICMPv4AddressMaskReplyType |
An address mask reply is an ICMP informational message, used to reply to an address mask request message with an appropriate subnet mask (type=18). |
| Info_Msg_Content0..1 | ICMPv4InfoMessageContentType |
Fields that are common to all ICMP informational messages are defined here. Fields that are specific to individual messages are defined separately under each message type. |


Shortcuts
| Type | ? | Example | Result |
|---|---|---|---|
| Child | nav>ul>li |

  |
|
| Sibling | + | div+p+bq
|

 |
| Climb-up | ^ | div+div>p> |

 |
| Grouping | ( ) | div> |

 |
| Multipli |
* | ul>li*5 |

 |
| Naming and # | $ @ | ul> |

 |
| ID and Classes | # . | #header+.title |

 |
| Custom attributes | [ ] | p[a=‘value1‘ b="value2"] |

 |
| Text | { } | p>{Click }+a{here}+{!} |

Click here!
 |
Hints
To display viewport meta tag in head:
meta:vp
RUBY compiler is a must, before building!!!
In Sass, variables start with a $ followed by the variable name:
$headings-color: green;
h1 { color: $headings-color; }
Sass allows nesting of CSS rules, which is a useful way of organizing a style sheet:
nav {
background-color: red;
ul {
list-style: none;
li {
display: inline-block;
}
}
}
In Sass, a mixin is a group of CSS declarations that can be reused throughout the style sheet:
@mixin box-shadow($x, $y, $blur, $c){
-webkit-box-shadow: $x, $y, $blur, $c;
-moz-box-shadow: $x, $y, $blur, $c;
-ms-box-shadow: $x, $y, $blur, $c;
box-shadow: $x, $y, $blur, $c;
}
div { @include box-shadow(0px, 0px, 4px, #fff); }
The @if directive works just like the if statement:
@mixin text-effect($val) {
@if $val == danger {
color: red;
}
@else if $val == alert {
color: yellow;
}
@else if $val == success {
color: green;
}
@else {
color: black;
}
}
div { @include text-effect(danger); }
Directive @for adds styles in a loop. The "start to end" excludes the end number, and "start through end" includes the end number. The #{$i} part is the syntax to combine a variable (i) with text to make a string:
@for $i from 1 through 12 {
.col-#{$i} { width: 100%/12 * $i; }
}
The @each directive which loops over each item in a list or map. The $key variable is needed to reference the keys in the map. Otherwise, the compiled CSS would have color1, color2... in it.
$list: (color1: blue, color2: red, color3: green);
@each $key, $color in $list {
.#{$color}-text {color: $color;}
}
The @while directive is an option with similar functionality to the while loop. After setting the CSS rule for width, $x is incremented by 1 to avoid an infinite loop:
$x: 1;
@while $x < 13 {
.col-#{$x} { width: 100%/12 * $x;}
$x: $x + 1;
}
Partials in Sass are separate files that hold segments of CSS code. Names for partials start with the underscore (_) character. For example, if all your mixins are saved in a partial named "_mixins.scss" import looks like:
// In the main.scss file
@import 'mixins'
Sass has a feature called extend that makes it easy to borrow the CSS rules from one element and build upon them in another:
.panel{
background-color: red;
height: 70px;
border: 2px solid green;
}
.big-panel{
@extend .panel;
width: 150px;
font-size: 2em;
}
To use built-in CSS functions and SASS variables use #{...} construction:
padding-top: calc(#{$header-height}/2 - #{$header-ul-li-font-size}/2);
Turn any HTML element into a grid container by setting its display property to grid:
display: grid;
To add columns to the grid, use the grid-template-columns property on a grid container:
grid-template-columns: auto 50px 10% 2fr 1fr;
To adjust the rows manually, use the grid-template-rows property:
grid-template-rows: auto 50px 10% 2fr 1fr;
To add a gap between the columns, use the grid-column-gap property:
grid-column-gap: 10px;
Add a gap in between the rows of a grid using grid-row-gap:
grid-row-gap: 5px;
Shorthand property for both rows and columns is a grid-gap:
grid-gap: $grid-row-gap $grid-column-gap;
The grid-column property is for use on the grid items themselves, where the first number for start-line (starting from 1) and the second number for end line:
grid-column: 2/4;
Same for rows:
grid-row: 1/4;
To align the content's position within its cell horizontally use the justify-self property on a grid item:
justify-self: (start/center/end);
To align an item vertically:
align-self: (start/center/end);
To align items within container all at once horizontally use justify-items on your grid container:
justify-items: (start/center/end);
Same for vertical alignment:
align-items: (start/center/end);
To group cells of your grid together into an area - give the area a custom name by using grid-template-areas on the container:
grid-template-areas:
"header header header"
" . content content"
"footer footer footer";
You can place an item in your custom area by referencing the name you gave it:
.item1 { grid-area: header; }
You can create an area on the fly for an item without creating an areas template:
.item1 { grid-area: horizontal line start/vertical line start/horizontal line end/vertical line end; }
By using the repeat function you can specify the number of times you want your column or row to be repeated:
grid-template-rows: repeat(100, 50px);
grid-template-columns: repeat(2, 1fr 50px) 20px;
To limit the size of items when the grid container changes size (minimal and maximal):
grid-template-columns: 100px minmax(50px, 200px);
To automatically insert as many rows or columns of your desired size as possible depending on the size of the container:
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
To collapse empty rows or columns and stretch your items to fit the size of the container use auto-fit:
grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
Place the CSS property display:flex; on an element allows you to use other flex properties:
display: flex;
To align any children of element into rows or columns add the flex-direction property to the parent item:
flex-direction: (row/row-reverse/column/column-reverse);
To wrap items use flex-wrap on the container. The break point of where the wrapping happens depends on the size of the items and the size of the container:
flex-wrap: (nowrap/wrap/wrap-reverse);
To combine flex-wrap and flex-direction use flex-flow:
flex-flow: direction wrap;
To space the flex items along the the main axis use justify-content on the container:
justify-content: (flex-start/center/flex-end/space-between/space-around);
To align flex items along the cross axis within container use align-items:
align-items: (flex-start/center/flex-end/baseline/stretch);
The flex-grow property controls the size of items when the parent container expands:
flex-grow: (0/number);
When used, flex-shrink property allows an item to shrink if the flex container is too small. Items shrink when the width of the parent container is smaller than the combined widths of all the flex items within it. The higher the number, the more it will shrink compared to the other items in the container:
flex-shrink: (0/number);
The flex-basis property specifies the initial size of the item before CSS makes adjustments with flex-shrink or flex-grow:
flex-basis: (auto/content/size/%);
Shortcut to set several flex properties at once:
flex: grow shrink basis;
The order property is used to tell CSS the order of how flex items appear in the flex container:
order: (0/number);
The align-self property allows you to adjust each item's alignment individually, instead of setting them all at once:
align-self: (auto/flex-start/center/flex-end/baseline/stretch);
Selectors
| Name | Code | Desc |
|---|---|---|
| All | * | Selects all elements |
| Attribute selector | [attr=value] | [attr^=value] - starts with [attr$=value] - ends with [attr*=value] - occurs once+ [attr~=value] - whitespace-separated |
| Adjacent sibling selector | A + B | Matches sibling that immediately follows the first element, and both are children of the same parent |
| General sibling selector | A ~ B | Matches siblings that are both children of the same parent element |
| Child selector | A > B | Matches children of first element |
| Descendant selector | A B | Matches descendant of first element |
Pseudo-classes
| Type | Desc |
|---|---|
| :hover | Matches when the user interacts with an element with a pointing device. |
| :first-child | Represents the first element among a group of sibling elements. |
| :last-child | Represents the last element among a group of sibling elements. |
| :nth-child(An+B) | Matches elements based on their position in a group of siblings. |
| :not(div) | Represents elements that do not match a list of selectors. |
| :has(>img) | Represents an element if any of the selectors passed as parameters. |
| :visited | Represents links that the user has already visited. |
| :active | Represents an element (such as a button) that is being activated by the user. |
| :checked | Represents any radio or option element that is checked or toggled to an ON state. |
| :root | Matches the root element of a tree representing the document (html). |
| :target | Represents a unique element (the target element) with an id matching the URL's fragment. |
Pseudo-elements
| Type | Desc |
|---|---|
| ::after | Creates a pseudo-element that is the last child of the selected element. It is often used to add cosmetic content to an element with the content property. It is inline by default. |
| ::before | Creates a pseudo-element that is the first child of the selected element. It is often used to add cosmetic content to an element with the content property. |
| ::first-letter | Applies styles to the first letter of the first line of a block-level element. |
| ::first-line | Applies styles to the first line of a block-level element. |
| ::selection | Applies styles to the part of a document that has been highlighted by the user (such as clicking and dragging the mouse across text). |
Shortcuts
General
| Shortcut | Description |
|---|---|
| Ctrl+Shift+P | command prompt |
| Ctrl+Alt+P | switch project |
| Ctrl+P | go to file |
| Ctrl+G | go to line |
| Ctrl+R | go to methods |
| Ctrl+Shift+R | go to methods in project |
| Ctrl+KB | toggle side bar |
| Ctrl+` | toggle console |
| Ctrl+Shift+N | new window |
Editing
| Shortcut | Description |
|---|---|
| Ctrl+L | select line (repeating selects next lines) |
| Ctrl+D | select word (repeat select others occurrences in context for multiple editing) |
| Ctrl+Alt+Up / Ctrl+Alt+Down | select column for multiple editing |
| Ctrl+Shift+M | select content into brackets |
| Ctrl+Shift+Enter | insert line before |
| Ctrl+Enter | insert line after |
| Ctrl+Shift+K | delete line |
| Ctrl+KK | delete from cursor to end of line |
| Ctrl+KBackspace | delete from cursor to start of line |
| Ctrl+Shift+D | duplicate line(s) |
| Ctrl+J | join lines |
| Ctrl+KU | upper case |
| Ctrl+KL | lower case |
| Ctrl+KV | paste from clipboard history |
| Ctrl+T | transpose (swap places) |
| Ctrl+F9 | sort case insensitive |
| F9 | sort case sensitive |
| Ctrl+/ | comment line |
| Ctrl+Shift+/ | block comment |
| Ctrl+Y | redo or repeat |
| Ctrl+C | copy |
| Ctrl+V | paste |
| Ctrl+Shift+V | paste and ident |
| Ctrl+Space | autocomplete (repeat to select next suggestion) |
| Ctrl+M | jump to matching brackets |
| Ctrl+U | soft undo (movement undo) |
| Ctrl+Shift+U | soft redo (movement redo) |
Code navigation
| Shortcut | Description |
|---|---|
| F12 | go to definition |
| Alt+- | jump back |
| Alt+Shift+- | jump forward |
XML / HTML
| Shortcut | Description |
|---|---|
| Ctrl+Shift+A | select content into tag |
| Alt+. | close tag |
Find / Replace
| Shortcut | Description |
|---|---|
| Ctrl+F | find |
| Ctrl+I | incremental find |
| Ctrl+H | replace |
| F3 | find next occurrence of searched word |
| Ctrl+F3 | find next occurrence of current word |
| Alt+F3 | select all occurrences of current word for multiple editing |
| Ctrl+Shift+F | find in files |
Navigation
| Shortcut | Description |
|---|---|
| Ctrl+0 | focus on sidebar |
| Esc | focus back to edit area when focus on sidebar |
Splits / Tabs
| Shortcut | Description |
|---|---|
| Alt+Shift+1 | single column |
| Alt+Shift+2 | two columns |
| Alt+Shift+5 | grid (4 groups) |
| Ctrl+[1,2,3...] | focus group |
| Ctrl+Shift+[1,2,3...] | move file to group |
| Alt+[1,2,3...] | select tab |
Bookmarks
| Shortcut | Description |
|---|---|
| Ctrl+F2 | toggle bookmark |
| F2 | next bookmark |
| Shift+F2 | previous bookmark |
| Ctrl+Shift+F2 | clear bookmarks |
Marks
| Shortcut | Description |
|---|---|
| Ctrl+KSpace | set mark |
| Ctrl+KW | delete from cursor to mark |
| Ctrl+KA | select from cursor to mark |
| Ctrl+KG | clear mark |
Custom
| Shortcut | Description |
|---|---|
| Alt+Shift+F | reindent |
| Alt+Shift+O | autosave on/off |
More
Go to Preferences
→ Key Bindings - Default
to explore all default shortcuts and read instructions
for packages you installed to find out about their custom key bindings.
Packages
| # | Package | Notes |
|---|---|---|
| All Autocomplete | Extend Sublime autocompletion to find matches in all open files of the current window | |
| autosave | Automatically saves the current file after every modification | |
| AutoFileName | Autocompletes filenames | |
| AutoPrefixer | Vendor prefixing CSS or SASS | |
| Babel | Syntax definitions for ES6 JavaScript with React JSX extensions | |
| Bootstrap 4 Autocomplete | Bootstrap 4 snippets etc | |
| BracketHighlighter | Matches brackets such as: [], (), {}, "", '', tags, etc | |
| Color Highlight | Lightweight Color Highlight colorizer | |
| ColorPicker | A multi-platform color picker plugin | |
| CSS Extended Completions | CSS Completions, LESS Completions, SASS Completions | |
| CSS Snippets | A set of custom CSS snippets | |
| Emmet | Speed up code writing | |
| Emmet CSS Snippets | CSS completions for Emmet | |
| ESlint | Lint ECMAScript/JavaScript syntax | |
| Gulp | Gulp tasks and snippets | |
| LiveReload | A web browser page reloading plugin | |
| NASM x86 Assembly | Provides actually decent code highlighting for x86-64 assembly | |
| One Dark Color Scheme | A port of the One Dark color scheme from Github's Atom editor | |
| One Dark Material - Theme | Theme based on Atom.io One Dark UI Theme and created from Material Theme | |
| Package Control | A full-featured package manager | |
| Sass | Sass and SCSS syntax | |
| SASS Build | SASS build sytem | |
| SASS snippets | Just Sass Snippets | |
| SideBarEnhancements | Enhancements to Sublime Text sidebar. Files and folders. | |
| SublimeCodeIntel | Full-featured code intelligence and smart autocomplete engine | |
| SublimeLinter | The code linting framework | |
| SublimeOnSaveBuild | Trigger a build the moment you save a file |
Hints
Custom Build System declaration for Node.js (Tools>Build System>Build New System):
{
"cmd": ["node", "$file"],
"selector": "source.js"
}
Custom Key bindings (Preferences>Key bindings):
[
{ "keys": ["alt+shift+f"], "command": "reindent" },
{ "keys": ["alt+shift+o"], "command": "auto_save" },
]
Custom Build System for NASM:
{
"variants":
[
{
"name": "Make plain",
"cmd": ["nasm", "${file}"]
},
{
"name": "Make .o x32",
"cmd": ["nasm", "-f", "win32", "${file}", "-o", "${file_base_name}.o"]
},
{
"name": "Make .o x64",
"cmd": ["nasm", "-f", "win64", "${file}", "-o", "${file_base_name}.o"]
},
{
"name": "Make .exe",
"cmd": ["ld", "${file_base_name}.o", "-o", "${file_base_name}.exe"]
},
{
"name": "Make .com x16",
"cmd": ["nasm", "-f", "bin", "${file}", "-o", "${file_base_name}.com"]
},
],
"file_regex": "^(.+):([0-9]+)()?: error: (.*)$",
"working_dir": "${file_path}",
"selector": "source.assembly"
}
Extensions
| # | Name | Notes |
|---|---|---|
| All Autocomplete | ||
| Auto Close Tag | ||
| Auto Complete Tag | ||
| Auto Rename Tag | ||
| Beautify Code Runner | ||
| GitLens — Git supercharged | ||
| Import Cost | ||
| JavaScript (ES6) code snippets | ||
| jshint | ||
| Live Server | ||
| Multiple clipboards for VSCode | ||
| Path Autocomplete | ||
| Reactjs code snippets | ||
| Sass / Scss | ||
| Theme - One Dark Pro | ||
| vscode-icons | ||
| ESLint |
Hints
JShint settings.json:
{
"workbench.iconTheme": "vscode-icons",
"[javascript]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"window.zoomLevel": 0,
"editor.minimap.enabled": false,
"liveServer.settings.donotShowInfoMsg": true,
"workbench.colorTheme": "One Dark Pro",
"jshint.config": "",
"jshint.lintHTML": true,
"jshint.options": {
"esversion": 6
}
Sass build task.json:
// Sass configuration
{
"version": "2.0.0",
"tasks": [
{
"label": "Sass Compile",
"type": "shell",
"command": "rm style.css && sass style.scss style.css",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}
Functions
| Function, etc | Notes |
|---|---|
"use strict" |
Follows actual ES standart, helps to write cleaner code, preventing from using undeclared variables etc. |
document.write(str); |
Straight to layout |
console.log(str); |
In console |
alert("message"); |
In window |
confirm("question"); |
In window |
prompt("question", "default answer"); |
In window |
console.log("%S and %D", "str", 4); |
Way to avoid \n |
arr.push(elem); |
[ ___+] |
arr.unshift(elem); |
[+___ ] |
arr.pop(); |
[ ___- ] |
arr.shift(); |
[ -___ ] |
arr.reverse(); |
[1, 2, 3] => [3, 2, 1] |
arr.indexOf(elem); |
|
arr.find( var => var == 2); |
Returns index |
arr.includes(what to find, start position); |
Returns true/false |
arr.every( (elem) => ); |
Returns true/false |
arr.some( (elem) => ); |
Returns true/false |
arr.slice(start № incl, end № not incl); |
Not changes basic array |
arr.splice(start № incl, hom much elems to remove not incl, what to insert); |
Changes basic array, 0 or empty disables 2nd param, empty disables 3rd param, arr.splice(start) will delete all after index |
arr.filter(elem => elem > 2); |
Makes new arr with passed through elems |
arr.map(elem => elem + 2); |
Every elem will be increased by 2, creates new arr |
array2 = array1.map( (elem) => ({"titleInNewJSON": elem["Title"], "ratingInNewJSON": elem["Rating"]})); |
Maping elements from JSON to new smaller JSON |
[...arr], [...arr1, ...arr2], [...arr, var] |
Spread operator. Example: Use to copy array |
arr.join("joiner str"); |
|
str.split("splitter str"); |
|
str.charAt(position); |
Starts from 0 like as array, returns char |
str.toUpperCase(); |
|
str.toLowerCase(); |
|
str.substring(start incl, end not incl); |
Returns part of a string |
str.charCodeAt(index); |
Returns unicode |
String.fromCharCode(unicode); |
Returns symbol |
JSON.parse('{"x":5,"y":"false","z":"Some text","w":false,"v":"2006-01-02T12:04:05.000Z"}'); |
{x: 5, y: "false", z: "Some text", w: false, v: "2006-01-02T12:04:05.000Z"} |
JSON.stringify({ x: 5, y: [new String('false'), "Some text", new Boolean(false), null, NaN, undefined, new Date(2006, 0, 2, 15, 4, 5), function(){}, Symbol('')] }) |
"{"x":5,"y":["false","Some text",false,null,null,null,"2006-01-02T12:04:05.000Z",null,null]}" |
let reg = new RegExp(regStr); |
Creating a regular expression with function |
condition ? returned if true : returned if false |
Ternary operator |
var = age > 21 |
Var will be true/false |
( function( ) { /* ... */ } )( ); |
Immediately invoked function expression/self-executing anonymous function |
| arguments | Object containing all arguments that were passed in function. Not an array, but almost same. Have length prop. |
function.call(args); |
Way to display arguments that have grabbed by next method |
var args = Array.prototype.slice.call(arguments); |
Way to grab arguments |
Object.assign(target, ...sources); |
Properties in the target object will be overwritten by properties in the sources if they have the same key. Later sources' properties will overwrite earlier ones. |
Types and conversion
| Conversion | Notes |
|---|---|
| To string: | |
String(4) |
|
"g" + 1 + false + "" = "g1false" |
Concatenation. "String" + smth. |
[] + 1 = "1" |
Empty array converts to empty string |
{} + 1 = "1" |
|
| To number: | |
Number("124") |
|
5 + +"5" = 10 |
Unary plus |
parseInt("15px", 10) = 15 |
10 is base |
| To boolean: | |
| 0, "", null, undefined, NaN -> false | |
| [], {} and anything else -> true | |
Boolean("1") = true |
|
!!"string" = true |
Double "not" |
| Native condition checking ("if" and other condition operators) | |
| Check type: | |
typeof("asd") -> string |
Context and .this
| Where | .this |
|---|---|
| Inside function | Window |
| Inside function + "use strict" | Undefined |
| Function inside method or inside function and so on | Window |
| Object method | Object |
| Constructor (New) | Freshmade object via New |
Setting exact context of function via func.call(someVar) , func.apply(someVar) , func.bind(someVar) |
someVar |
Inside events, via someElementOfDOM.addEventListener() |
someElementOfDOM . Note that arrow functions don't have "this" |
| Arrow function inside some scope with certain variable | Variable that is in the same scope as an arrow function or in a global scope if not in the current scope |
Reference code:
let user = {
name: 'John'
};
function sayName(surname, arg2) {
console.log(this);
console.log(this.name + " " + surname + " " + arg2);
}
function count(number) {
return this * number;
}
let double = count.bind(2);
Comma seperated values as argument; Expected output: {name: "John"}; John Smith Brown
console.log(sayName.call(user, 'Smith', 'Brown'));
Array as argument; Expected output: {name: "John}; John Snow Wick
console.log(sayName.apply(user, ['Snow', 'Wick']));
Expected output: 6
console.log(double(3));
bind() creates a new function that, when called, has its 'this' keyword set to the provided value,
with a given sequence of arguments preceding any provided when the new function was called.
Support: ECMAScript >= 5 (thus >= IE9)
Unlike bind(), apply() and call():
- Accept additional parameters as well.
- Executes the function it was called upon right away.
- The call() and apply() methods do not make a copy of the function it is being called on.
Objects
Simple object creation:
let myObject = {
prop1: "str",
prop2: 13,
prop3: function () {...}
};
Simple constructor creation:
function MyConstructor () {
this.prop1: "str";
this.prop2: 13;
this.prop3: function () {...};
};
let objectExemplarName = new MyConstructor1();
Constructor creation with arguments:
function MyConstructor (pr1, pr2, pr3) {
this.prop1: pr1;
this.prop2: pr2;
this.prop3: pr3;
};
Check if object is instance of constructor:
myObject instanceof MyConstructor;
Check if object has own property:
myObject.hasOwnProperty(prop); //true/false
Check if prototype of constructor is prototype of object:
MyConstructor.prototype.isPrototypeOf(myObject);
Prototype property. Avoids extra copies of variables in every new object.:
myConstructor.prototype.prop1 = 13;
Define prototype property:
MyConstructor.prototype = {
constructor: MyConstructor,
prop1: 13,
prop2: function () {...}
};
Inheritance:
MyConstructor.prototype = Object.create(ParentObject.prototype);
Redefinition of constructor property is mandatory:
MyConstructor.prototype.constructor = MyConstructor;
Mixins:
let myMixin = function (object) {
object.prop1 = function () {...}
};
myMixin.(myObject);
Closure:
function MyConstructor() {
let protectedProp = 13;
this.getProtectedProp = function () {
return protectedProp;
}
}
Modules:
let myModule = (function () {
return {
firstMixin: function (obj) {...},
secMixin: function (obj) {...}
}
})();
Lists only Enumerable keys in object:
MyConstructor.keys(myObject);
Looping through keys:
for (let key in myObject) {...};
Looping through elements:
for (let element of myArrayOrStringOrMapOrSet) {...};
Expected output: Array ["prop1", "prop2", "prop3"]. All props:
Object.getOwnPropertyNames(myObject);
DOM parsing
| Command | Note |
|---|---|
| document.getElementByTagName(); | |
| document.getElementByClassName(); | |
| document.getElementById(); | |
| document.querySelector(); | |
| document.querySelectorAll(); | |
| document.querySelector("[attribute^='attrValue']"); | will match all attributes STARTING with attrValue |
| document.querySelector("[attribute$='attrValue']"); | will match all attributes ENDING with attrValue |
| document.querySelector("[attribute*='attrValue']"); | will match all attributes CONTAINING attrValue |
| document.querySelector("[attribute^='attrValue']:not([attribute$='notWantedValue'])"); | combining |
DOM manipulation
| Command | Note |
|---|---|
| let newElem = document.createElement('tagName'); | link |
| parentElement.insertBefore(newElement, beforeWhichElement); | |
| element.classList.add('class1 class2 classEtc'); | Methods of classList |
| element.classList.remove('className'); | |
| element.style.attributeName = attrValue; | link |
| element.innerHTML = '
Hello World!
'; | ...or just text |
| parentElement.appendChild(newElement); | |
| parentElement.append(newElement); | Experimental |
| document.element.remove(); | |
| parentElement.appendChild(newElement); |
DOM events
| Command | Note |
|---|---|
| target.addEventListener(type, listener[, options]); | link |
| target.removeEventListener(type, listener[, options]); | |
| document.addEventListener('DOMContentLoaded', (event) => {}); |
Communication with server
| Command | Note |
|---|---|
| List of HTTP status codes | |
| MIME types | |
| List of HTTP header fields | |
| HTTP | |
| XMLHttpRequest | |
| Fetch | |
| Events, including event delegation |
LocalStorage
| Command | Note |
|---|---|
localStorage.setItem('myCat', 'Tom'); |
|
localStorage.getItem('myCat'); |
|
localStorage.removeItem('myCat'); |
|
localStorage.clear(); |
Other
Smart interval that awaits function finishing:
let timerId = setTimeout(function funcName() {
console.log("action");
setTimeout(funcName, 2000);
});
Custom error definition via 'throw':
function getRectArea(width, height) {
if (isNaN(width) || isNaN(height)) {
throw 'Parameter is not a number!';
}
}
try {
getRectArea(3, 'A');
} catch (e) {
console.error(e);
// expected output: "Parameter is not a number!"
}
try...catch...finaly... and Error object:
let json = '{"id":2}';
try {
let user = JSON.parse(json);
console.log(user);
if (!user.name) {
throw new Error("Name doesn't exist");
}
}
catch(error) {
console.log(error.name);
console.log(error.message);
console.log(error.stack);
console.log(`We got ${error.name}`);
} finaly {
console.log("It was executed anyway neither there is error or not");
}
ES6 class syntax
//Classname starts for capital letter
class Options {
//Default values in constructor
constructor (height = 100, width = 100, bg = 'grey',
fontSize = 16, textAlign = 'center', text = 'Hello World!') {
this.height = height + 'px';
this.width = width + 'px';
this.bg = bg;
this.fontSize = fontSize + 'px';
this.textAlign = textAlign;
this.text = text;
}
//Class method definition
newDiv (text = this.text, cssTextRules) {
let newElement = document.createElement('div');
//Backticks
newElement.innerHTML = `${text}`;
//CSS definition
newElement.style.cssText =
`height: ${this.height};
width: ${this.width};
background: ${this.bg};
font-size: ${this.fontSize};
text-align: ${this.textAlign}`;
document.body.appendChild(newElement);
}
}
//Methods testing
let newObj = new Options(200, 200, 'green', 20, 'center', 'aaaaaaaaaaaaaaaaaa');
newObj.newDiv();
let oldObj = new Options();
oldObj.newDiv();
Setters and getters
Functional setter and getter:
function User(age) {
this._age = age;
//setter
this.setAge = function (age) {
if (typeof age === 'number' && age > 0 < 110) {
_age = age;
}
};
//getter
this.getAge = function () {
return _age;
};
}
The set syntax binds an object property to a function to be called when there is an attempt to set that property:
const language = {
arr: [],
set current(name) {
this.arr.push(name);
}
};
language.current = 'EN';
language.current = 'FA';
console.log(language.arr);
// expected output: Array ["EN", "FA"]
The get syntax binds an object property to a function that will be called when that property is looked up:
const obj = {
arr: ['a', 'b', 'c'],
get latest() {
if (this.arr.length === 0) {
return undefined;
}
return this.arr[this.arr.length - 1];
}
};
console.log(obj.latest);
// expected output: "c"
Set and get:
let user = {
name: "John",
surname: "Smith",
get fullName() {
return `${this.name} ${this.surname}`;
},
set fullName(value) {
[this.name, this.surname] = value.split(" ");
}
};
Wrapping data-properties with setters and getters:
let user = {
get name() {
return this._name;
},
set name(value) {
if (value.length < 4) {
alert("Too short name");
return;
}
this._name = value;
}
};
Named export:
// 📁 say.js
function sayHi(user) {
alert(`Hello, ${user}!`);
}
function sayBye(user) {
alert(`Bye, ${user}!`);
}
export {sayHi, sayBye};
Named exported objects must have a name (obviously):
// export an array
export let months = ['Jan', 'Feb', 'Mar','Apr', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
// export a constant
export const MODULES_BECAME_STANDARD_YEAR = 2015;
// export a class
export class User {
constructor(name) {
this.name = name;
}
} // no ; at the end if it is class or function
Export as to rename:
export {sayHi as hi, sayBye as bye};
Import:
// 📁 main.js
import {sayHi, sayBye} from './say.js';
sayHi('John');
sayBye('John');
Import everything as an object using (import * as obj):
// 📁 main.js
import * as say from './say.js';
say.sayHi('John');
say.sayBye('John');
Default export (one per file):
export default expression;
export default function (…) { … } // also class, function*
export default function name1(…) { … } // also class, function*
export { name1 as default, … };
Named export must contain {}, default export - not
import {User} from ...
import User from ...
Rules
| Rule | Description |
|---|---|
| /str/i | ignore case |
| /str/g | match globally (1+) |
| /str/m | multiline |
| /str/u | UNICODE |
| /str/s | . match newlines |
| /str/y | fuzzy search |
| /str1|str2/ | OR |
| regex.test(str) | True/False |
| str.match(regex) | Returns matches |
| /.uck/ | Any 1 symbol |
| /[ld]uck/ | Specifies letters |
| /[a-z]uck/ | Range of letters |
| /[0-9]/ | Range of numbers |
| /[^t]uck/ | Excludes letters in [] |
| /[a]+/ | One or more in a row |
| /[a]*/ | 0 or more |
| /t[a-z]*i/ | Greedy. titanic => titani |
| /t[a-z]*?i/ | Lazy. titanic => ti |
| /^[range]/ | Searches in the start of string |
| /[str]$/ | Searches at the end of string |
| /\w/ | Equal to /[A-Za-z0-9_]/ |
| /\W/ | Equal to /[^A-Za-z0-9_]/ |
| /\d/ | /[0-9]/ |
| /\D/ | /[^0-9]/ |
| /\s/ | /[\f\n\r\t\v]/ |
| /\S/ | /[^\f\n\r\t\v]/ |
| \t | tab |
| \r | carriage return |
| \n | newline |
| \v | vertical tab |
| \f | formfeed |
| [\b] | backspace |
| a{3,5} | From 3 to 5 |
| a{3,} | 3 or more |
| a{3} | Exact 3 |
| /colou?r/ | Optional "u" 0+ times |
| /x(?=y)/ | Matches if Y follows X |
| /x(?!y) | Matches if Y not follows X |
| /(?<=y)x/ | Matches if Y precede X |
| /(?<!y)x/ | Matches if Y not precede X |
| /(?=\w{3,6})(?!\D*\d)/ | Positive and negative lookaheads |
| /(\w+)\s\1/ | "\1" repeats pattern within () |
| str.replace(regex,str2) | Replace |
| "some any".replace(/(\w+)\s(\w+), "$2 $1"/) | Replace with pattern repeat |
| str.trim() | Removes spaces on the sides |
| /(?!^[\s]+)(?=[\w]*)(?![\s]+$)/ | Removes spaces on the sides |
| \ [ ^ $ . | ? * + ( ) | Must be escaped with \ to match literally or \\ when creating with "new RegExp(regStr);" |
| /^(1\s?)?(\(\d{3}\)[\s]?|\d{3}[\s\-]?)\d{3}[\s-]?\d{4}$/ | Example: telephone validator |
Commands
| Command | Description |
|---|---|
| $(document).ready(function() {}); | Execute function after render |
| $("button").addClass("animated bounce"); | |
| $(".well").addClass("animated shake"); | |
| $("#target").removeClass("btn-default"); | |
| $("#target").css("color","red"); | |
| $("button").prop("disabled", true); | Set non-css property |
| $("h3").html("jQuery Playground"); | Add html element |
| $("h3").text("some text"); | Change text |
| $("elem").remove(); | Delete element |
| $("#target").appendTo("#left-well"); | Move target element inside other element |
| $("#target2").clone("#right-well"); | |
| $("#left-well").parent().css("background-color", "blue"); | Change css of target's parrent element |
| $("elem").children().css("color", "blue"); | Change css of target's childreb element |
| $(".target:nth-child(3)").addClass("..."); | |
| $(".target:odd").addClass("..."); | 1 3 5... |
Classes
| Classes | Notes |
|---|---|
| div.container | Responsive width container |
| div.container-fluid | Full width container, spanning 100% width of the viewport |
| .img-fluid | Responsive 100% width image |
| .img-thumbnail | Gives an image a rounded 1px border appearance |
| .float-left, .mx-auto .d-block, .float-right, .float-none | Aligning blocks |
| .text-left, .text-center, .text-right | Aligning text |
| .align-baseline, .align-top, .align-middle, .align-bottom, .align-text-bottom, .align-text-top | Text vertical alignment |
| .text-lowercase, .text-uppercase, .text-capitalize | Transform text |
| .font-weight-bold, .font-weight-bolder, .font-weight-normal, .font-weight-light, .font-weight-lighter, .font-italic | Font weights |
| .list-inline, .list-unstyled | List styling |
| .btn .btn-primary | Width fit content |
| .btn .btn-block | Spans whole parrent element width |
| Button types: | btn-primary, btn-secondary, btn-success, btn-danger, btn-warning, btn-info, btn-light, btn-dark, btn-link |
| .col-{breakpoint}-auto | Size columns based on the natural width of their content |
| div.row>(div.col-xs-4>button)*3 | Emmet-style example |
| i.fa fa-info-circle | Font-awesome styling |
| .shadow-none .shadow-sm, .shadow, .shadow-lg | Shadows |
| {parrent container}.clearfix | Way for an element to automatically clear its child elements, so that you don't need to add additional markup. It's generally used in float layouts where elements are floated to be stacked horizontally. |
| .d-inline, .d-block, .d-none, .d-flex, .d-inline-flex | Display |
| .w-25, .w-50, .w-75, .w-100 | Width |
| .h-25, .h-50, .h-75, .h-100 | Height |
| .mw-25, .mw-50, .mw-75, .mw-100 | Max-width |
| .mh-25, .mh-50, .mh-75, .mh-100 | Max-height |
| {property}{sides}-{size} | {property}: m - margin, p - padding; {sides}: t - top, b - bottom, l - left, r - right, x - both left and right, y - both top and bottom; {size}: 1,2,3,4,5,auto |
Grid sizes
|
Extra small <576px |
Small ≥576px |
Medium ≥768px |
Large ≥992px |
Extra large ≥1200px |
|
|---|---|---|---|---|---|
| Max container width | None (auto) | 540px | 720px | 960px | 1140px |
| Class prefix | .col- |
.col-sm- |
.col-md- |
.col-lg- |
.col-xl- |
| # of columns | 12 | ||||
| Gutter width | 30px (15px on each side of a column) | ||||
| Nestable | Yes | ||||
| Column ordering | Yes |
Mobile first
@media all and (min-width: 320px) { }
@media all and (min-width: 480px) { }
/*Small devices (landscape phones, 576px and up)*/
@media all and (min-width: 576px) { }
/*Medium devices (tablets, 768px and up)*/
@media all and (min-width: 768px) { }
/*Large devices (desktops, 992px and up)*/
@media all and (min-width: 992px) { }
/*Extra large devices (large desktops, 1200px and up)*/
@media all and (min-width: 1200px) { }
Desktop first
/*Extra large devices (large desktops, 1200px and up)*/
@media all and (max-width: 1200px) { }
/*Large devices (desktops, 992px and up)*/
@media all and (max-width: 992px) { }
/*Medium devices (tablets, 768px and up)*/
@media all and (max-width: 768px) { }
/*Small devices (landscape phones, 576px and up)*/
@media all and (max-width: 576px) { }
@media all and (max-width: 480px) { }
@media all and (max-width: 320px) { }
React
Simple empty statefull component:
class MyExampleComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
return ();
}
};
Filled component with comments:
class FilledComponent extends React.Component {
constructor(props) {
super(props);
//State are defined here:
this.state = {
input: '',
messages: []
}
//All methods must be bound explicitly to the component:
this.handleChange = this.handleChange.bind(this);
this.submitMessage = this.submitMessage.bind(this);
}
//Methods are defined here:
handleChange(event) {
//Dont change state directly. Use setState method:
this.setState({
//Access to event value:
input: event.target.value
});
}
submitMessage() {
const currentMessage = this.state.input;
this.setState({
input: '',
messages: [...this.state.messages, currentMessage]
});
}
render() {
//Write JS code here before return without brackets "{}"
return (

Type in a new Message:

<input
value={this.state.input}
onChange={this.handleChange}/>

<button onClick={this.submitMessage}>Submit</button>

//Render elements depending on array values amount
{this.state.messages.map( (message, idx) => {
return (
//Dont forget to set key property

{message}

)
})
}

);
}
};
React without JSX:
class Hello extends React.Component {
render() {
return
Привет, {this.props.toWhat}
;
}
}
ReactDOM.render(
<Hello toWhat="мир" />,
document.getElementById('root')
);
Importing so no need to type React.Component:
import React, {Component} from 'react';
Modern class initialization. Constructor Is still need if you need to modify state with props:
class ModernClass extends Compoment {
state = {
counter: 0
}
//No need to .bind(this)
handleClick = () => {...};
}
| Command | Description |
|---|---|
| Setup config | |
| git config --global user.name "username" | set username |
| git config --global user.email<EMAIL_ADDRESS>| set email |
| git config --global alias.hist "log --pretty=format:'%h %ad | [%an] %s%d' --graph --date=short" | set hist alias |
| git config --list | discover all current settings |
| git help <command> | discover command description |
| Bash Aliases | |
|
# Set as alias in bash or terminal emulator: alias gs=git status alias ga=git add $* alias gb=git branch alias gc=git commit -m $* alias gd=git diff alias gco=git checkout alias gk=gitk --all& alias gx=gitx --all alias got=git alias get=git |
|
| Initialize repo | |
| git init | initialization of repo |
| git status | discover which branch are you currently on and which files are tracked |
| Add files to track changes | |
| git add . | add all files to a tracking |
| git add <filename.xtnsn> | add single file to a tracking |
| git rm -r --cached <filename.xtnsn> | unstage file from tracking (will not delete file from repo) |
| Commit | |
| git commit -m "message" | commit all currently tracking files with message/comment (-m) |
| git commit --amend -m "new message" | change commit message or/and commited files |
| git reset | cancel indexing, remove from added files |
| Remote repo | |
| git remote add %shortLocalRepoName %remoteRepoNameOrURL | add remote repo |
| git push -u %shortLocalRepoName master | push all changes to remote repo to master branch | >
| git clone %whatToClone %inWhatToClone | clone remote repo |
| git clone "https://github.com/username/reponame" | clone remote repo in current directory |
| git clone --bare hello hello.git | clone just history, without files |
| git remote show %name | shows information about certain repo |
| cd ../cloned_repo; git fetch | fetch remote repo changes without merging with local clone changes |
| git merge %branchNameWithWhichToMerge | merge local and remote changes (being in local clone directory)(origin/master - remote with which branch to merge) |
| git pull | = git fetch %remoteName; git checkout %remoteName/master; git checkout -b %localName; ga .; gc; git checkout master; git merge %localName/localBranch |
| git push %remoteRepoName %remoteBranchName | push changes to remote repo from local |
| Branches | |
| git branch | show branches |
| git branch -a | show branches (all) including remote |
| git branch --track %localBranchName %remoteBranchName | adding remote branch track to local branch to track changes in remote |
| git checkout %branchName | switch to %branchName |
| git checkout -b %branchName | create new branch and switch to it (equals: git checkout %branch; git branch %branch) |
| git switch -c %newBranchName | switch to created new branch |
| Fetch changes for shared repo | |
| git remote add %sharedRepoName ../hello.git | 1. Name and add shared repo for everyone |
| git branch --track %sharedRepoName %sharedRepoBranchName | 2. Track branch |
| git pull %sharedRepoName %sharedRepoBranchName | 3. Fetch and merge |
| Git server | |
| git daemon --verbose --export-all --base-path=. | create git server |
| git clone git://localhost/repoName.git network-name | clone from local repo server |
| git daemon ~~~ --enable=receive-pack | enable pushing to server (dangerous) |
| Loging/History | >|
| git log | shows commits history |
| git log --all --pretty=format:"%h %cd %s (%an)" --since="7 days ago" --author=Username | display in pretty format, commits of autors since 7 days |
| git log --pretty=format:'%h %ad | [%an] %s%d' --graph --date=short | display pretty as graph |
| git log --pretty=format:'%h' | short hash |
| git log --pretty=format:'%d' | branch HEADs or tags |
| git log --pretty=format:'%cd' | commiter date |
| git log --pretty=format:'%ad' | author date |
| git log --pretty=format:'%s' | comment/message |
| git log --pretty=format:'%an' | author |
| git log --graph | list as ASCII graph |
| git log --date=short | short date |
| git hist | explore history and hash (must be set alias for hist) |
| git reflog | lists all operations with repo |
| git checkout %hash | move HEAD (or arrow) to previous commit (using hash) |
| Tags | |
| git tag %tagName | create tag called %tagName |
| git checkout %tagName~1 | switch to previous history point relatively to tag by one |
| git tag | show all tags |
| git tag -d %tagname | deletes tags (and commits if they are deleted) |
| git hist %branchName --all | shows certain tags in branch for every certain commit |
| Cancel changes before commit | |
| git reset HEAD %filenameS | resets changes in buffer zone (files won't change at this point) |
| git checkout %filenameS | cancel changes in certain file(s) |
| Cancel changes after commit (saved in history) | |
| git revert HEAD (--no-edit) | will be saved in history |
| Cancel changes after commit (won't be saved in history) | |
| git reset --hard %hashOrTag | HARD reset to certain history condition |
| Merge, rebase, move | |
| git mv %filenameS %dirName | proper way to move files via git inside repo |
| git checkout %mainBranch; git merge %branchAddedToMain | merge branches |
| git reset --hard %hashOfMainBranchBeforeMerge; git rebase %mainBranch %branch2% | alternative to merge, without history of branches |
| Command | Description |
|---|---|
| rm -r dirName | delete directory |
| mv fileOrName toWhereMove | move file or directory |
| vim | cli text editor (shift then q to quit) |
| nano | better cli text editor |
| sudo visudo | Set which commands are able to run without password |
| whereis $commandname | Location of command folder |
- W3C validator
- W3C HTML specs
- W3C CSS specs
- DevDocs by Mozilla
- W3schools
- FreeCodeCamp.org
- Sublime Text 3
- Sublime Text Packages
- VScodium
- VScodium extensions
- VScode
- VScode extensions
- ConEmu
- clink
- Curl
- Node.js
- Python
- Ruby
- LiveReload
- Desktop Github
- Git
- Git How to
- Sublime Merge
- MiKTeX
- TEXmaker
- FontAwesome
- Animate.css
- NASM
- Olydbg
- Slack
- Google Fonts
- Regex101
- FreeFormatter
- JSbench
- Markdown (.md)
- Markdown Cheatsheet
- Javascript.info
- jQuery
- Good jQuery resourse
- Bootstrap
- React
- Redux
- Webpack
- Webpack config creator
- Babel
- Wordpress
- Django
- Open Server
- Strapi


Games
Originals
About
Settings
Detrogames Originals
Stay tuned! Our team is working on a new game coming soon.


Save money on multiple prescriptons
- A three month certificate is £29.10
It could save you money if you need more than 3 prescribed items in 3 months. - A yearly certificate is £104.00
It could save you money if you need more than 12 prescribed items in a year.
To spread the cost, yearly Prescription Prepayment Certificates can be paid for by 10 monthly direct debit instalments of £10.40.
How much could you save
| Number of prescriptions per month | Savings with a 12 month certificate | Savings with a 3 month certificate |
|---|---|---|
| 2 | £95 a year | £20 in 3 months |
| 3 | £195 a year | £45 in 3 months |
| 4 | £295 a year | £70 in 3 months |


Cool place, the food is decent, and the prices are fair. Before we had kids we would go eat here in the middle of the night just for a change of scenery. We still go here and still enjoy it. But we go during normal hours now. lol
Cool place, the food is decent, and the prices are fair. Before we had kids we would go eat here in the middle of the night just for a change of scenery. We still go here and still enjoy it. But we go during normal hours now. lol Cool place, the food is decent, and the prices are fair. Before we had kids we would go eat here in the middle of the night just for a change of scenery. We still go here and still enjoy it. But we go during normal hours now. lol


Apply for Online Admission 2020
* For Sikkim State Quota Seat
Click Here
* For Non Sikkimese candidates
Click Here


AWS::DMS::Endpoint
The AWS::DMS::Endpoint
resource creates an AWS DMS endpoint.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type": "AWS::DMS::Endpoint", "Properties": { "CertificateArn":
String
, "DatabaseName":String
, "DynamoDbSettings":DynamoDbSettings
, "EndpointIdentifier":String
, "EndpointType":String
, "EngineName":String
, "ExtraConnectionAttributes":String
, "KmsKeyId":String
, "MongoDbSettings":MongoDbSettings
, "Password":String
, "Port":Integer
, "S3Settings":S3Settings
, "ServerName":String
, "SslMode":String
, "Tags": [Resource Tag, ...
], "Username":String
} }
YAML
Type: AWS::DMS::Endpoint Properties: CertificateArn:
String
DatabaseName:String
DynamoDbSettings:DynamoDbSettings
EndpointIdentifier:String
EndpointType:String
EngineName:String
ExtraConnectionAttributes:String
KmsKeyId:String
MongoDbSettings:MongoDbSettings
Password:String
Port:Integer
S3Settings:S3Settings
ServerName:String
SslMode:String
Tags: -Resource Tag
Username:String
Properties
CertificateArn
-
The Amazon Resource Number (ARN) for the certificate.
Required: No
Type: String
Update requires: No interruption
DatabaseName
-
The name of the endpoint database.
Required: No
Type: String
Update requires: No interruption
DynamoDbSettings
-
Settings in JSON format for the target DynamoDB endpoint. For more information about the available settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon DynamoDB Database as a Target for AWS Database Migration Service.
Required: No
Type: AWS DMS Endpoint DynamoDBSettings
Update requires: No interruption
EndpointIdentifier
-
The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Required: No
Type: String
Update requires: No interruption
EndpointType
-
The type of endpoint. Valid values are
source
andtarget
.Required: Yes
Type: String
Update requires: No interruption
EngineName
-
The type of engine for the endpoint. Valid values depend on the
EndPointType
and includemysql
,oracle
,postgres
,mariadb
,aurora
,aurora-postgresql
,redshift
,s3
,db2
,azuredb
,sybase
,dynamodb
,mongodb
, andsqlserver
.Required: Yes
Type: String
Update requires: No interruption
ExtraConnectionAttributes
-
Additional attributes associated with the connection.
Required: No
Type: String
Update requires: No interruption
KmsKeyId
-
The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the
KmsKeyId
parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.Required: No
Type: String
Update requires: Replacement
MongoDbSettings
-
Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the Configuration Properties When Using MongoDB as a Source for AWS Database Migration Service section at Using Amazon S3 as a Target for AWS Database Migration Service.
Required: No
Type: AWS DMS Endpoint MongoDbSettings
Update requires: No interruption
Password
-
The password to be used to login to the endpoint database. Do not use this parameter directly. Use
Password
as an input parameter withnoEcho
as shown in the Parameters. For best practices information, see Do Not Embed Credentials in Your Templates.Required: No
Type: String
Update requires: No interruption
Port
-
The port used by the endpoint database.
Required: No
Type: Integer
Update requires: No interruption
S3Settings
-
Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see the Extra Connection Attributes section at Using Amazon S3 as a Target for AWS Database Migration Service in the AWS Database Migration Service User Guide.
Required: No
Type: AWS DMS Endpoint S3Settings
Update requires: No interruption
ServerName
-
The name of the server where the endpoint database resides.
Required: No
Type: String
Update requires: No interruption
SslMode
-
The SSL mode to use for the SSL connection.
SSL mode can be one of four values:
none
,require
,verify-ca
,verify-full
. The default value isnone
.Required: No
Type: String
Update requires: No interruption
Tags
-
The tags that you want to attach to the DMS endpoint.
Required: No
Type: List of resource tags in key-value format
Update requires: Replacement
Username
-
The user name to be used to login to the endpoint database.
Required: No
Type: String
Update requires: No interruption
Return Value
Ref
When you pass the logical ID of an AWS::DMS::Endpoint
resource to the
intrinsic Ref
function, the function returns the ARN of the
endpoint.
For more information about using the Ref
function, see Ref.
Example
JSON
{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "myBasicEndpoint": { "Type": "AWS::DMS::Endpoint", "Properties": { "EngineName": "mysql", "EndpointType": "source", "Username": "username", "Password": { "Ref": "PasswordParameter" }, "ServerName": "source.db.amazon.com", "Port": 1234, "DatabaseName": "source-db" } } } }
YAML
AWSTemplateFormatVersion: 2010-09-09 Description: "Endpoint test" Resources: BasicEndpoint: Type: AWS::DMS::Endpoint Properties: EngineName: "mysql" EndpointType: "target" Username: "username" Password: !Ref PasswordParameter ServerName: "server.db.amazon.com" Port: 1234 DatabaseName: "my-db" Tags: - Key: "type" Value: "new"
See Also
-
CreateEndpoint in the AWS Database Migration Service API Reference.


Historical Background
According to a Gallup Poll in 2015, 64% of American adults drink at least one cup of coffee per day. However, it is unlikely that the majority of coffee drinkers have any clue about the origin of the beans that made their drink, or the history of coffee. This week’s data set is relatively straightforward and has several metrics to investigate. A quick viz should be pretty easy to accomplish – try to keep the time spent on your viz to about an hour.
Click here to download this week's dataset as a CSV
Click here to download this week's dataset as a Hyper Extract
Before we get to enjoy a nice cup of coffee, coffee trees produce delicate white flowers that ripen into a fruit called coffee cherries. The fruit is harvested, and removed typically revealing two beans. In this state, the beans are considered green coffee beans. Before being roasted and ground, the beans are typically sun dried. Note that this is an overview of the process, for a more in depth look at the process, check out this link from the National Coffee Association USA.
Coffee’s history traces its roots back to Ethiopia where a goat herder named Kaldi noticed an increase in his goat’s energy level after they ingested what turned out to be coffee cherries. He brought this to the attention of an abbot at a local monastery who created and drank a beverage made from the cherries. The abbot found that drinking this beverage also increased his energy and alertness. Word spread throughout the monastery and eventually made its way to the Arabian Peninsula where coffee was first cultivated.
Although it is not known when Kaldi made his discovery, coffee was well established throughout the Peninsula by the 16th century. Coffee drinking was a social experience, with the predecessors of Starbucks popping up throughout the region. European visitors gradually brought the beverage back to Europe where it enjoyed immediate popularity. By the mid 1600s, coffee was gaining popularity as a breakfast beverage, replacing beer and wine which had been the standard for some time.
Those heading to the New World brought the love of coffee with them and spurred the inclusion of coffee houses throughout the colonies. Coffee cemented its place as the preferred American beverage after British Parliament passed the Tea Act on May 10, 1773. In addition to being a key event leading up to the Revolutionary War, the Boston Tea Party sparked an American beverage revolution as well.
With this background and the data set, what can you visualize? Remember to post your viz to Twitter, tagging @TThrowbackThurs with the hashtag #ThrowbackThursday.
Data Source
This week’s data source comes from the Food and Agricultural Organization of the United Nations. Please be sure to credit the data source in your visualization.
Data Notes
Because of geopolitical changes, especially the fall of the USSR, some of the countries included in the data set will not be found by Tableau. You’ll have to specify an equivalent.
Information for this week's post comes from the National Coffee Association USA.


class ReusableGenericStatement
A generic statement that can be stored in a variable, and used multipe times. This saves the (small) overhead of a hash table lookup that's incurred when using Database.statement every time the same statement is run.
run |
Call setBody to set any statement Parameter values, then call PreparedStatement.execute to run the SQL statement. If setBody sets a value for GenericStatement.resultHandler, call that with the result of PreparedStatement.execute. infix fun run(setBody: (GenericStatement) -> Unit): Unit |


@The Big Wan ledger is fine
@Ocash Coinomi is closed source, we can't be sure it's not also affected
@private guy use KMD paper wallet and send funds there, you can later import it to SUPERNET
@Bernz - Selling LABS VRSC's Agama is unaffected, but if you used the seed in Agama, move the funds. Would recommend moving it anyway though.
(edited)


Process the configuration and set up the mocking server. This server can be configured three different ways:
responseGenerator
.recordTarget
and outputs all HTTP exchanges to a file
for the purpose of generating mocks for the recordTarget
.The configuration consists of port
,responseGenerator
, serverConfig
,
recordTarget
, and recordingFilepath
.
The behavior of the server is undefined if neither responseGenerator
, serverConfig
, nor
recordTarget
are set.
port
(default: '8000'): The port that the server listens to.responseGenerator
(optional): The default response generator URL. If no
response generator is passed the server will require all calls to be explicitly mocked. If
responseGenerator
is not set and the server receives an un-mocked call it will crash.serverConfig
(optional): The path to the mocking config file. If this is not passed the
server will act as a pass through proxy to the responseGenerator
. Ignored in record mode.recordTarget
(optional): setting this will enable WeM2k in record mode. If both responseGenerator
and recordTarget
are set, an exception is thrown.recordingFilepath
(optional): allows defaultRecordOutputFilepath
to be overwritten. Only
valid when recordTarget
is set.This function bootstraps nock and initializes WeM2k if record mode isn't enabled.
used by WeM2k as baseRoute for nock
string The value retrieved from the configuration or the default if the value was not set in the configuration.
This is a helper function to initialize the http server.
used by server to determine where to proxy requests
Asynchronously start the server.
Promise<http.Server> The listening http.Server as a Promise.
Asynchronously stop the server.
Promise<http.Server> The stopped http.Server as a Promise.
Generated using TypeDoc
Server is the mocking server. It loads the user supplied
serverConfig
file and can mock REST calls sent to it.


Activation of NF-kappa B by interleukin 2 in human blood monocytes.
Abstract
We report here that interleukin 2 (IL-2) acts on human blood monocytes by enhancing binding activity of the transcription factor NF-kappa B to its consensus sequence in the 5 ' regulatory enhancer region of the IL-2 receptor alpha chain (p55). Similarly, IL-2 activates NF-kappa B in the human monocytic cell line U 937, but not in resting human T-cells. This effect is detectable within 15 min and peaks 1 h after exposure to IL-2. Enhanced NF-kappa B binding activity is followed by functional activation in that inducibility of the IL-2 receptor alpha chain is mediated by enhanced NF-kappa B binding and that a heterologous promoter containing the NF-kappa B consensus sequence (-291 to -245) of the IL-2 receptor alpha chain gene is activated. In addition, IL-2 is capable of increasing transcript levels of the p50 gene coding for the p50 subunit of the NF-kappa B transcription factor, whereas mRNA levels of the p65 NF-kappa B gene remained unchanged.


A tiny (1838b minfied + gzipped) jQuery plugin for scrolljacking and auto-hashing
See it on GitHub, or see some comparisons
Try out other examples!
This section is not inside the section wrapper, so normal scrolling here!
Try scrolling with the mouse wheel as well as the scrollbar, it works as you expect!
Normally, your sections will have to be 100% of the viewport (like it is now) for it to work. With smartscroll, the section can all be of different heights!
DemoYou can scroll normally in the white areas above, and also by sections in these coloured areas!
DemoNoticed when you scrolled down, the URL's hash changes automatically? That's the auto-hash feature! You can enable it just by itself!
DemoBy default, scrolling through different sections does not add to your history, but if you like that feature, you can turn it on too!
Demo


{% load staticfiles %}
{{ error_message }}
1. Event Details
If ticket reselling is switched on, it can only be switched off after creation as long as a ticket has not been sold.
Awesome! Lets make it official!I don't want an event, get me out of here! Create Event


| DOSE: T+ 0:00 |
3 hits |
oral |
LSD |
(blotter / tab) |
| T+ 1:00 |
1 hit |
oral |
LSD |
(blotter / tab) |
It was summertime, and a few friends and myself were at a music festival in the appalachian mountains. I had used lsd and mushrooms several times in the past, and enjoyed the experiences. We found a campsite, set up our tents, and proceeded to make a few puchases. I found a ten-strip of what the girl described to be really good hits. I walked back to the campsite, and ingested three of them. I sat back and relaxed, as was my normal pre-trip ritual.
The effects came on much stonger than ever before, the effects were more potent than any other trip in about one hour. I became really anxious and started to fidget with the dried up pine needles on the ground. My one friend asked me if I was feeling alright, I told him I was thirsty. We walked up to the check-in/store, it was really crowded in there. My face began to tingle, and my hands became cold and sweaty. The number of people in there made me nervous, so I was relived to walk out of there with my soda.
We got back, and decided to walk the trails with three other friends. When we started to walk I became much happier, and the visuals were unbeliveable. After what seemed to be and hour or two of intense laughter and distortions we arrived back at the site. I then walked down to this swampy pond to listen to the echos of these bullfrogs calling with another person. I think it is there that I totally lost contact with reallity.
He later told me that I ate another hit down there started to shake a tree, and walked off. The next thing I remember was arriving at these peoples campsite saying hello, and sitting down at the perimeter. I then began to think about how limited I was by my three dimensions of physical movement. Proceeded by trying each and every combination back then forth at different speeds.
After that the strangers there became nothing more than symbols of my emotions. I became fixated on the fire, then stuck my face very close to the burning wood. My emotions then proceeded to pull me away, I then began to try to get past them using every movement I could think. I would get past one then another would stop me. I cant remember how long I tried for, but I eventually ended up in this circular parking lot with many people.
I began to look at the licence plates on the back of the cars, and every single car was from a different state. I wonder how I made the the licence plates appear all diferent, because I know that it was not likely that they were all from different states. I looked up and saw and heard three different scenes, one of a back tire of a dirtbike kicking dirt up, another of firecrackers poping, and the third of different groups of people walking around.
This excitment made me very paranoid, and then began to distrust every single peson in the area. They were there for me, and I had to keep them away. I kept them away with a geometrical game of equations, which makes no sense to me now but did at that moment. I made a mistake and they all began to close in very fast. I became very afraid more afraid than I can remember being since I was a child. I blacked out, and ended up on some trail flat on my stomach.
 Someone picked me up, and put me on thier shoulder. I couldn't speak so I just kicked, I feel bad now cause I did hit someone. They dropped me and I belived for some reason that I was 'doomed', I reached in my pocket without thought. I pulled out my keys and slid them across my throat. Luckily they didn't even scratch.
I thought about what I just did, and was able to gather my thoughts. I then realized that it was pitch dark out, and I needed to get back to my campsite which I had no idea how to get to. I walked up to these guys camping, and asked one if he could show me back to the store he did, which wasn't too far. I found a couple friends standing near my car, whom I was very glad to see. They told me I had been gone for eight hours, and they had been looking for a bit.
I was still off for an hour or two, which I spent listening to music in my tent.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


OUR FULL- AND HALF-DAY WORKSHOPS
PRAGMATIC TDD - FULL-DAY WORKSHOP
By Luka Muzinic
Developers still hesitate to include writing tests in their everyday routine. There are numerous excuses, myths and misconceptions around: “they slow us down”, “we’ll never achieve 100% code coverage, so why bother”, “takes too much time to learn testing, we’re better of writing business logic instead”. When we get to the topic of writing tests first, the debate becomes even more heated.
In real world, where you get paid by code that ships, developer strive to write the most efficient tests possible. To cover mission critical code. To quickly decide whether writing a functional test or series of unit tests is the best approach. Let us learn together how to use phpunit and TDD in most efficient way possible, for extraordinary results.
This workshop is for developers who start their projects by drawing model of the database first, developers who are overwhelmed by number of testing tools or don’t know where to start and developers who simply want to level up their game.
Workshop requirements:
- PHP7+ installed and running
- composer installed and running
- A git repository link with workshop material will be sent to all attendees via email on Wednesday, Sept. 19th 2018.
PRAGMATIC EVENT SOURCING - FULL-DAY WORKSHOP
By Arne Blankerts and Sebastian Heuer
Domain-Driven Design, CQRS and Event Sourcing.  Or not?
In this workshop, we will create a solid, event-sourced web application from scratch. We will not rely on any framework or libraries to really get to the bottom of things.
Make sure to bring your laptop!
Workshop requirements:
- A laptop
HACK THIS WORKSHOP! - HALF-DAY WORKSHOP
In this workshop we will take a look at common security failings from a new perspective: that of the hacker. You'll be provided with a set of different sites each exhibiting a different security flaw, the challenge will be to find and exploit it and in doing so learn how to protect your own sites.
All the sites will be run locally inside docker containers so don't worry about breaking any laws! Obviously this means that you will need to bring a laptop which is capable of running docker containers in order to participate in this workshop.
Workshop requirements:
- A laptop which is capable of running docker containers
PENTESTING DO's & DONT's - HALF-DAY WORKSHOP
This workshop is a necessarily short introduction to the work of a pentester. We will consider ethical issues, legal requirements, learning environments, tools used, and then we will explore the basics of an actual pentest. We will reference the OWASP Top 10, but we will also look at the contents of a scoping document, and how to structure a pentest by selecting relevant ideas from a range of pentesting methodologies.
Workshop requirements:
- Laptop with a virtual machine runtime (VirtualBox or any that supports OVA images)
- A download link will be sent to all attendees via email on Wednesday, Sept. 19th 2018.
EVENT STORMING FOR FUN AND PROFIT! - HALF-DAY WORKSHOP
One of the challenges we face on a day-to-day basis is getting the right and correct information from our product owners or clients. This can be both frustrating and decremental to the velocity of your team. No one likes to work on features that when delivered someone says "well... that wasn't exactly what I had in mind" But now we have Stickies! So many stickies! It's a whirlpool of stickies, what is this madness? In this interactive workshop, we will explore all the facets of Event Storming as a modelling technique to get a clear and precise mental model of how a feature is supposed to work, all using the power of stickies! As we go through the user story, we'll explain the different types of stickies, why they matter, and show why EventStorming is such an effective format.
Workshop requirements:
- No technical requirements
YOUR APP LIVES ON A NETWORK - NETWORKING FOR PHP DEVS - HALF-DAY WORKSHOP
By Wim Godden
As PHP developers, our job is to build web applications. But how can we build applications that rely on networking if we don't know how these networks and the big network that connects them all (this thing called the Internet) actually work? In this tutorial, we walk through the basics of networking, before diving into all the essentials every PHP developer should know, from TCP/UDP over IP addressing (IPv4/6), source/destination ports, sockets, DNS, switching, firewalling and even more advanced protocols such as OSPF, VRRP and BGP. Prepare for an eye-opener when you realize how much a typical app relies on all of these (and many more) working flawlessly... and how you can prepare your app for failure in the chain.
Workshop requirements:
- A laptop


My name is Francisco J Gonzalez. I was born in Miami 37 years ago. I have lived half my life in Madrid and the other half in Miami. Today, I am happily married and father of 2 beautiful children. I make my living managing an investment fund a founded with a friend of mine 10 years ago. I love learning new things and programing is my new adventure. Please click on Portfolio to check out my work
GPA: N/A
GPA: 3.23
TBD


about
I create dynamic websites and web applications
I began my journey to become a Full-Stack Developer by attending the University of Miami Coding Bootcamp.
- HTML & CSS
- JavaScript
- NodeJS
I began my journey to become a Full-Stack Developer by attending the University of Miami Coding Bootcamp.