Skip to content

Instantly share code, notes, and snippets.

View RaulTsc's full-sized avatar
🤠
Available

Raul Tomescu RaulTsc

🤠
Available
  • Freelancer
  • Timisoara, Romania
View GitHub Profile

RN

Why RN

  • Truly native: not using a WebView (like you do in Ionic 2)
  • Although you write JS, all the widgets are rendered as native platform widgets
  • Open Source
  • Good community and documentation
  • Flexbox
  • Lot of support from facebook
users: {
id: 'guid',
email: '',
screenName,
password,
broadcasts: {
scheduled: ['guid'],
subscriptions: ['guid']
},
avatar: 's3url',
@RaulTsc
RaulTsc / Sequelize JSONB.md
Last active February 14, 2021 07:07
Using postgres with jsonb & sequelize

Squashing git commits:

  • Create new branch from master (or branch from which you've branched)

  • git checkout ROOT_BRANCH (from which you've diverged with FEATURE_BRANCH)

  • git checkout -b HELPER_BRANCH

  • git merge FEATURE_BRANCH --squash

  • git checkout ROOT BRANCH

  • git branch -D FEATURE_BRANCH

  • git checkout -b FEATURE_BRANCH

// @flow

import React from 'react';
import {asyncConnect as connect} from 'redux-connect';
// import css from './Component.scss';

const asyncActions = [{
  promise: () => Promise.all([]),
}];
// @flow

import * as React from 'react';
import {reduxForm} from 'redux-form';
import {FormattedMessage, TextField, Checkbox, DatePicker, SelectField, MenuItem} from 'universal/common/components';
import css from './ApplicationFormPreview.scss';

export const APPLICATION_FORM_NAME = 'APPLICATION_FORM_NAME';
const applicationFormTemplateBlueprint = {
  basicInformation: {
    firstName: {
      type: 'text',
    },
    lastName: {
      type: 'text',
    },
    birthdate: {
src
controllers
swaggerControllers.js
applicationFormTemplate
tests
applicationForm.test.ts
applicationForm.mock
applicationFormValidator.test
applicationFormTemplateController.js
applicationFormTemplateValidator.js
  • C8 + C9
  • C7 (RSA, El-Gammal, DH, AES)
  • One time passwords
  1. Saltzer & Schroeder

  • Open design - Assume the attackers have the sources and the specs.
  • Fail-safe defaults - Fail closed; no single point of failure. Fail by default.
  • Least privilege - No more privileges than what is needed.
  • Economy of mechanism - Keep it simple, stupid.
  • Separation of privileges - Don’t permit an operation based on a single condition.