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 ServiceStack.Common; | |
| using ServiceStack.OrmLite; | |
| using ServiceStack.ServiceInterface; | |
| using ServiceStack.ServiceInterface.Auth; | |
| using ServiceStack.WebHost.Endpoints; | |
| using System; | |
| using System.Data; | |
| using System.Globalization; | |
| using System.Security.Cryptography; | |
| using System.Text; |
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 ServiceStack.WebHost.Endpoints; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Security; | |
| using ServiceStack.Common.Web; | |
| using ServiceStack.Logging; | |
| using ServiceStack.ServiceHost; | |
| using ServiceStack.ServiceInterface; |
Make sure everything is up to date.
2. Install Xcode and its "Command Line Tools"
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
| #!/bin/bash | |
| # install homebrew's official php tap | |
| brew tap josegonzalez/homebrew-php | |
| # install homebrew-dupes (required to install zlib, php54's dependency) | |
| brew tap homebrew/dupes | |
| # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug | |
| brew install nginx mysql |
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>ajax with JSONP</title> | |
| </head> | |
| <body> | |
| <section data-til="Kasper"> | |
| Dette er eksempel på ajax with padding (jsonP). <br> |
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
| // http://node.supermobile.dk/rest-api-repository-design-pattern/ | |
| // DataAccessLayer Repository Pattern | |
| // using nodejs, express and javascript prototype | |
| // exported as module | |
| module.exports = TaskRepository; | |
| //TaskRepository class Constructor | |
| function TaskRepository() { | |
| this.tasks = [{ |
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
| // DataAccessLayer Repository Pattern | |
| // using nodejs, express and javascript prototype | |
| /** | |
| * TaskRepository class deals with task persistence | |
| */ | |
| function TaskRepository() { | |
| this.tasks = []; | |
| this.nextId = 1; |
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> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Create Custom Effect</title> | |
| <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> | |
| <style> | |
| p { |
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
| /*======================================================================= | |
| = Node Simple HTTP-WebServer by Jalal Hejazi 2014 = | |
| =======================================================================*/ | |
| var util = require('util'), | |
| http = require('http'), | |
| fs = require('fs'), | |
| url = require('url'), | |
| events = require('events'); |
