-
Open source https://github.com/c9/typescript
-
Superset of Javascript - So javascript is valid typescript, then type script add some features
-
Adds types and OO
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
public static class UselessStatefulScope // ;) | |
{ | |
public static void ProcessRequest<T>(T Request) | |
{ | |
//Resolve the validator & validate the request | |
var valid = Container.Resolve<IValidate<T>>(); | |
if(!valid(Request)) | |
throw new Exception(); | |
//Resolve all the applicable processors and process them |
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
public static class UselessStatefulScope // ;) | |
{ | |
public static void ProcessRequest<T>(T Request) | |
{ | |
//Resolve the validator & validate the request | |
var valid = Container.Resolve<IValidate<T>>(); | |
if(!valid(Request)) | |
throw new Exception(); | |
//Resolve all the applicable processors and process them |
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
The term 'w' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. |
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
//In the middle of a riduculous amount of silly dom traversal I have this line | |
$(this).find('.holder').find('h3:first > span:first-child').html('<strong>Priced from</strong> ' + theVal); | |
//More silly dom traversal | |
//The problem is that in IE8 when this line is executed the display is not updated, it renders sometime later (maybe after all js is finished?) in chrome and other browsers the new value is rendered as soon as this line is executed.. |
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
(define (max1 a b c) | |
(cond ((and (> a b)(> b c)) a) | |
((and (> a b)(> c b)) a) | |
(else c))) | |
(define (max2 a b c) | |
(cond ((and (> a b)(> b c)) b) | |
((and (> a b)(> c b)) c) | |
(else b))) | |
(define (square x) (* x x)) | |
(define (sum-square a b) (+ (square a) (square b))) |
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
; 1.1 | |
; What is the result of each of the follow expressions | |
; 10 => 10 | |
; (+ 5 3 4) => 12 | |
; (- 9 1) => 8 | |
; (/ 6 2) => 3 | |
; (+ (* 2 4) (- 4 6)) => (+ 8 -2) => 6 | |
; (define a 3) | |
; (define b (+ a 1)) | |
; (+ a b (* a b)) |
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
; ex 1.11 | |
(define (f n) | |
(if ((n < 3) n) | |
(else (+ (f (- n 1)) (* 2 (f (- n 2))) (* 3 (f (-n 3))))))) | |
; (f 4) | |
; (+ (f 3) (* 2 (f 2)) (* 3 (f 1))) | |
; (+ (+ (f 2) (* 2 (f 1)) (* 2 (f 0))) (* 2 2) (* 3 1)) | |
; (+ (+ (f 2) (* 2 (f 1)) (* 2 (f 0))) 4 3) | |
; (+ (+ (f 2) (* 2 (f 1)) (* 2 (f 0))) 4 3) |
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
(http://www.apkmirror.com/apk/google-inc/google-play-store/google-play-store-7-2-13-j-xhdpi-8-pr-139098199-release/google-play-store-7-2-13-j-xhdpi-8-pr-139098199-android-apk-download/#description)[papk] |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.InteropServices.WindowsRuntime; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Xunit; | |
namespace StringCalculator | |
{ |
OlderNewer