This file contains hidden or 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() { | |
"use strict"; | |
var Foxx = require("org/arangodb/foxx"), | |
controller = new Foxx.Controller(applicationContext) | |
controller.get("/hello/:name", function(req, res) { | |
res.set("Content-Type", "text/plain"); | |
res.body = "Hello " + req.params("name"); | |
}); |
This file contains hidden or 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() { | |
"use strict"; | |
var Foxx = require("org/arangodb/foxx"), | |
controller = new Foxx.Controller(applicationContext), | |
_ = require("underscore"), // loading underscore.js in C:\Program Files\ArangoDB 2.2.4\share\arangodb\js\node\node_modules | |
moment = require("moment"); // loading moment.js in C:\Program Files\ArangoDB 2.2.4\share\arangodb\js\node\node_modules | |
controller.get("/hello/:name", function(req, res) { | |
res.set("Content-Type", "text/plain"); |
This file contains hidden or 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
declare var ko: any; | |
class Formula { | |
a: any = ko.observable(3); | |
b: any = ko.observable(4); | |
sum: any = ko.observable(null); | |
// 'sum' is changed with this ko.computed(). | |
private controlSum: Function = ko.computed(() => { | |
var a: number = Number(this.a()), // Don't forget to cast to number. |
This file contains hidden or 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
/* This is a sample data from full JSON file. */ | |
{ | |
"gender": "male", | |
"name": { | |
"first": "Eddy", | |
"last": "Mungin" | |
}, | |
"birthday": "1962-01-20", | |
"memberSince": "2009-03-10", |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Angular Sample</title> | |
</head> | |
<body ng-app="myApp"> | |
<div ng-controller="myController"> | |
<div> |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using System.Web.Http.Tracing; | |
using System.Reflection; | |
using Owin; |
This file contains hidden or 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
.heroes {list-style-type: none; margin-left: 1em; padding: 0; width: 10em;} | |
.heroes li { cursor: pointer; position: relative; left: 0; transition: all 0.2s ease; } | |
.heroes li:hover {color: #369; background-color: #EEE; left: .2em;} | |
.heroes .badge { | |
font-size: small; | |
color: white; | |
padding: 0.1em 0.7em; | |
background-color: #369; | |
line-height: 1em; | |
position: relative; |
This file contains hidden or 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
import {Component} from 'angular2/angular2' | |
import {Http, Response, HTTP_PROVIDERS} from 'angular2/http' | |
import _ from 'lodash' | |
@Component({ | |
selector: 'my-page1', | |
template: ` | |
<ul> | |
<li *ng-for="#card of cards">{{card.title}}</li> | |
</ul> |
This file contains hidden or 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
'use strict'; | |
const obj = { | |
a: 1, | |
b: "two'`%#", | |
c: true, | |
d: null, | |
e: [1, '`two', true, null], | |
percentReplacer: '@PERSONT@', | |
sharpReplacer: '@SHARP@' |
This file contains hidden or 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
import 'babel-polyfill'; | |
import lodash from 'lodash'; | |
const config = require('./config.json') as { mssql: any }; | |
import Sequelize from 'sequelize'; | |
const sequelize = new Sequelize(config.mssql.schema, config.mssql.user, config.mssql.password, { | |
host: config.mssql.host, | |
dialect: 'mssql' | |
}); |
OlderNewer