Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"plugin:promise/recommended", | |
"plugin:sonarjs/recommended", |
1. Somewhere on your machine clone the project. | |
``` | |
> git clone https://github.com/facebook/react-devtools.git | |
> cd react-devtools | |
``` | |
2. Switch to the v3 branch | |
``` | |
> git checkout v3 | |
``` |
<meta charset="UTF-8"> | |
<html> | |
<body> | |
<div id='root' /> | |
</body> | |
<script type='text/javascript' src="./dist/index.js"></script> | |
</html> |
c:\gbdk\bin\lcc -Wa-l -Wl-m -Wl-j -DUSE_SFR_FOR_REG -c -o main.o main.c | |
c:\gbdk\bin\lcc -Wa-l -Wl-m -Wl-j -DUSE_SFR_FOR_REG -o main.gb main.o |
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Security; | |
using System.Reflection; | |
using System.Security.Cryptography; | |
using System.Security.Cryptography.X509Certificates; |
using System; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace RsaEncryptionSample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
// Rollup plugins to install as npm --save-dev | |
import typescript from "rollup-plugin-typescript";//used for typescript compilation | |
import resolve from "rollup-plugin-node-resolve"; //used for enabel NPM modules + | |
import commonjs from "rollup-plugin-commonjs"; //with probably use commonjs | |
import replace from "rollup-plugin-replace"; //used for replacing ENV varible in code | |
import uglify from "rollup-plugin-uglify"; //used for production minification | |
// import angular from "rollup-plugin-angular"; //used for Angular2 application see https://www.npmjs.com/package/rollup-plugin-angular | |
// Rollup configuration inspired by https://www.youtube.com/watch?v=ICYLOZuFMz8 | |
export default { | |
entry: "path/to/main.ts", //entrypoint to traverse app |
/** | |
* Copyright (c) 2016, Tiernan Cridland | |
* | |
* Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby | |
* granted, provided that the above copyright notice and this permission notice appear in all copies. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Post extends Model | |
{ | |
/** | |
* Array of relationships to load. |