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 Xunit; | |
namespace Specs.Registration | |
{ | |
public enum UserStatus |
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
// The SqlEntityConnection (Entity Data Model) TypeProvider allows you to write code that uses | |
// a live connection to a database that is represented by the Entity Data Model. For more information, | |
// please go to | |
// http://go.microsoft.com/fwlink/?LinkId=229210 | |
module GeertVLConnection | |
#if INTERACTIVE | |
#r "System.Data" | |
#r "System.Data.Entity" |
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'; | |
/* Filters */ | |
angular.module('myApp.filters', []). | |
filter('interpolate', ['version', function(version) { | |
return function(text) { | |
return String(text).replace(/\%VERSION\%/mg, version); | |
}; | |
}]). |
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
$scope.filesPortfolio = { | |
id:0, | |
idName:"Documents", | |
number:"1", | |
name:"Documents", | |
files:[ | |
{id:0,type:"image",title:"Brochure Cooling", image:"thumb0.png"}, | |
{id:1,type:"image",title:"Cooling systems", image:"thumb1.jpg"}, | |
{id:2,type:"image",title:"Transport systems", image:"thumb2.jpg"}, | |
{id:3,type:"video",title:"Long distance transport", image:"thumb3.jpg"}, |
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
angular.module('myApp.controllers', []). | |
controller('MyCtrl1', ['$scope', function($scope) { | |
$scope.uploadFile = function() { | |
console.log("Uploading file"); | |
for (var i = 0, f; f = $scope.files[i]; i++) { | |
var reader = new FileReader(); | |
reader.onloadend = function(evt) { | |
if (evt.target.readyState == FileReader.DONE) { | |
console.log(evt.target.result); | |
} |
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.IO; | |
using System.Xml; | |
namespace TOCParser | |
{ | |
public class XHtmlDocParser | |
{ | |
private XmlNamespaceManager _mgr; |
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
## Arrived at page 52 (Statements) | |
class Number < Struct.new(:value) | |
def to_s | |
value.to_s | |
end | |
def inspect | |
"<<#{self}>>" | |
end |
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
mymodule.directive('nullIfEmpty', [function() { | |
return { | |
require: 'ngModel', | |
link: function(scope, elm, attr, ctrl) { | |
ctrl.$parsers.unshift(function(value) { | |
return value === '' ? null : value; | |
}); | |
} | |
}; | |
}] |
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> | |
<title>Files property test</title> | |
<script type="text/javascript"> | |
function reqListener() { | |
console.log('listened'); | |
} | |
function getFiles() { |
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; | |
namespace MacRocketFly | |
{ | |
public class Point | |
{ | |
public float X { | |
get; | |
set; | |
} |