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
<head> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<link rel="stylesheet" href="css/validator/css/bootstrapValidator.min.css"/> | |
<script type="text/javascript" src="js/jquery.min.js"></script> | |
<script type="text/javascript" src="js/bootstrap.min.js"></script> | |
<script type="text/javascript" src="css/validator/js/bootstrapValidator.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
$('#attributeForm').bootstrapValidator(); |
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
<?php | |
header('Content-Type: application/json'); | |
if($_POST) | |
{ | |
if($_POST['email']) | |
{ | |
$incominglist = $_POST['email']; | |
$full=array(); | |
$con=mysqli_connect("localhost","root","shiva1995","invite"); | |
// Check connection |
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
{ | |
"name":"hello", | |
"main":"www/index.html", | |
"description": "demo app of node-webkit", | |
"version": "0.1.0", | |
"window": { | |
"title": "Hello World", | |
"icon": "link.png", | |
"toolbar": false, | |
"width": 800, |
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> | |
<!-- Latest compiled and minified CSS --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | |
</head> | |
<body> |
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') | |
, http = require('http') | |
, path = require('path'); | |
var app = express(); | |
app.configure(function(){ | |
app.set('port', process.env.PORT || 3000); | |
app.set('views', __dirname + '/views'); | |
app.set('view engine', 'jade'); |
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
$(function() { | |
var showInfo = function(message) { | |
$('div.progress').hide(); | |
$('strong.message').text(message); | |
$('div.alert').show(); | |
}; | |
$('input[type="submit"]').on('click', function(evt) { | |
evt.preventDefault(); |
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
// server.js | |
// set up ====================================================================== | |
// get all the tools we need | |
var path = require('path'); | |
var express = require('express'); | |
var app = express(); | |
var port = process.env.OPENSHIFT_NODEJS_PORT || 8080 | |
, ip = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1"; | |
var mongoose = require('mongoose'); |
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 mongoose = require('mongoose'); | |
var userSchema = mongoose.Schema({ | |
recent : { | |
film : String, | |
director : String, | |
musicdir :String, | |
rating :String, | |
genre :String, | |
thumbnail : String, | |
}, |
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 mongoose = require('mongoose'); | |
var movie_api = mongoose.Schema({ | |
movie : { | |
name : String, | |
year : String, | |
director : String, | |
genre : String, |
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 http = require("http"); | |
var express = require("express"); | |
var bodyParser = require('body-parser'); | |
var app = express(); | |
var mongoose = require("mongoose"); | |
var remote_db_url = require('./database.js'); | |
mongoose.connect(remote_db_url.url); | |
var movie = require('./model.js'); | |
app.use(bodyParser()); |
OlderNewer