Skip to content

Instantly share code, notes, and snippets.

View NSLog0's full-sized avatar
🦋

NSLog0 NSLog0

🦋
View GitHub Profile
@NSLog0
NSLog0 / app.js
Created March 24, 2016 17:21 — forked from clarle/app.js
Short tutorial on how to use Express and node-mysql
// Module dependencies
var express = require('express'),
mysql = require('mysql');
// Application initialization
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
@NSLog0
NSLog0 / ็Home Controller
Created May 19, 2016 05:30
Turorial for React and Spring Boot
package com.algorithmtut;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HomeController {
@RequestMapping("/")
public String core() {
return "index";
@NSLog0
NSLog0 / pom.xml
Last active May 19, 2016 05:39
Turorial for React and Spring Boot
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
@NSLog0
NSLog0 / index.html
Created May 19, 2016 05:50
Turorial for React and Spring Boot
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content=""/>
<meta name="author" content=""/>
<title>Algorithmtut - Leanning Coding Technique</title>
</head>
@NSLog0
NSLog0 / package.json
Created May 19, 2016 06:03
Turorial for React and Spring Boot
{
"name": "algorithmtut",
"version": "0.0.1",
"description": "leanning coding technique",
"main": "index.jsx",
"scripts": {
"production": "webpack -p",
"start": "webpack-dev-server --inline --content-base . --history-api-fallback",
"test": "",
"watch": "webpack -p"
@NSLog0
NSLog0 / webpack.config.js
Created May 19, 2016 06:04
Turorial for React and Spring Boot
var path = require("path");
module.exports = {
devtool: 'source-map',
entry: './index.js',
output: {
path: path.resolve(__dirname, "build"),
publicPath: "/",
filename: "bundle.js"
},
module: {
@NSLog0
NSLog0 / index.js
Last active May 19, 2016 06:17
Turorial for React and Spring Boot
import React, { Component } from 'react'
import { render } from 'react-dom'
class Home extends Component {
render() {
return (
<div>Hello, World!</div>
)
}
}
@NSLog0
NSLog0 / .bablerc
Created May 19, 2016 06:27
Turorial for React and Spring Boot
{
"presets": ["es2015", "stage-0", "react"]
}
@NSLog0
NSLog0 / css example 1
Created July 12, 2016 15:13
for my tutorial
ul > li a[title="home"]
@NSLog0
NSLog0 / 1
Last active July 14, 2016 04:43
for my tutorials
button#submit { }
.side-bar-menu#homeIcon { }