Skip to content

Instantly share code, notes, and snippets.

View paulallies's full-sized avatar
🖥️
Coding

Paul Allies paulallies

🖥️
Coding
View GitHub Profile
@paulallies
paulallies / User.dart
Created August 6, 2018 18:52
User class
class User {
int id;
String name;
String email;
User(int id, String name, String email) {
this.id = id;
this.name = name;
this.email = email;
}
@paulallies
paulallies / users.json
Created August 6, 2018 18:49
sample data from jsonplaceholder
[
{
"id": 1,
"name": "Leanne Graham",
"username": "Bret",
"email": "Sincere@april.biz",
"address": {
"street": "Kulas Light",
"suite": "Apt. 556",
"city": "Gwenborough",
@paulallies
paulallies / pubspec.yaml
Created August 6, 2018 18:45
My pubspec of app
name: apiJsonListview
description: An app to illustrate Listview with Http call for json.
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
http: ^0.11.3+16
dev_dependencies:
flutter_test:
@paulallies
paulallies / .babelrc
Created July 29, 2018 07:55
Babel or react projects
{
"presets": [
"env",
"react"
]
}
@paulallies
paulallies / package.json
Last active May 13, 2019 19:21
package.json for without create react app
{
"name": "reactproject",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node_modules/.bin/webpack-dev-server --mode development --open --hot",
"build": "node_modules/.bin/webpack --config webpack.prod.js --mode production",
"serve": "node_modules/.bin/http-server ./dist"
@paulallies
paulallies / app.js
Created July 23, 2018 14:08
without create react app app.js file
import React, { Component } from 'react';
class App extends Component {
render() {
return (<h1>My React App</h1>)
}
}
export default App;
@paulallies
paulallies / index.js
Last active May 20, 2019 07:34
without react create app index.js
import React from 'react';
import { render } from 'react-dom';
import App from './components/app';
const rootEl = document.getElementById('app');
render(<App />, rootEl);
if (module.hot) {
@paulallies
paulallies / index.html
Created July 23, 2018 14:05
html template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My React App</title>
</head>
@paulallies
paulallies / webpack.config.js
Last active April 3, 2020 16:26
webpack for without-react-create-app
const path = require("path");
const HtmlWebPackPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
devtool: 'source-map',
entry: "./src/index.js",
output: {
path: path.join(__dirname, "/dist"),
@paulallies
paulallies / package.json
Last active June 28, 2018 07:45
Testing NPX
{"name": "npx-is-cool", "version": "0.0.0", "bin": "./testingnpx.js"}