This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.recyclerviewtrinity; | |
/** | |
* Created by Aneh Thakur | |
*/ | |
public class GetterSetter { | |
public String getName() { | |
return name; | |
} |
OlderNewer