Skip to content

Instantly share code, notes, and snippets.

doctype html
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css')
link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css')
script(src='https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js')
script(src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js')
script(src='https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js')
extends layout
block content
div(class="container" id="Cool" ng-app="mainApp")
h2#header("property"="pValue") Users
div
a(href="/users/add") Add User
h3 Response
table.table(ng-controller="TodoController")
thead
tr
extends layout
block content
div(class="container" id="Cool" ng-app="mainApp" ng-controller="formController")
h2= title
a(href="/users/index") Home
  |  
a(href="/users/add") Add User
form(method='post', action='/users/addUser')
input(type='text', name='name', value='', placeholder='Name' ng-model="name")
input(type='text', name='email', value='', placeholder='Email' ng-model="email")
extends layout
block content
div(class="container" id="Cool" ng-app="mainApp" ng-controller="formController")
h2= title
a(href="/users/index") Home
  |  
a(href="/users/add") Add User
div.response
form(ng-submit="updateInfo()")
input(type='text', name='name', value='', placeholder='Name' ng-model="name")
@anehkumar
anehkumar / app.js
Last active November 16, 2015 14:22
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
var express = require('express');
var router = express.Router();
var util = require("util");
var fs = require("fs");
var path = require('path');
var url = require('url');
/* GET users listing. */
router.get('/', function(req, res, next) {
var db = req.con;
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:recyclerview-v7:23.1.0'
compile 'com.squareup.picasso:picasso:2.5.0'
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
package com.recyclerviewtrinity;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.FrameLayout;
package com.recyclerviewtrinity;
/**
* Created by Aneh Thakur
*/
public class GetterSetter {
public String getName() {
return name;
}