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.Linq; | |
| using System.Reflection; | |
| using System.Threading.Tasks; | |
| using System.Windows.Forms; | |
| namespace Test | |
| { |
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.IO; | |
| using System.Reflection; | |
| namespace Kake | |
| { | |
| class Bootstrap | |
| { | |
| delegate int EntryPoint(string[] args); |
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
| async function foo() { | |
| try { | |
| let result = []; | |
| for (let value of await getValues()) { | |
| let newVal = await asyncOperation(value); | |
| console.log(newVal); | |
| result.push(newVal); | |
| } | |
| return result; | |
| } catch (e) { |
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
| app.Use(next => async context => | |
| { | |
| await next(context); | |
| if(context.Response.ContentLength == null) | |
| { | |
| context.Response.StatusCode = 404; | |
| var path = Path.Combine(_hostingEnvironment.WebRoot, "_error", "404.html"); | |
| var content = File.ReadAllText(path); | |
| await context.Response.SendAsync(content, "text/html"); | |
| } |
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
| Get-ChildItem -Filter "*.dll" | ForEach-Object { | |
| $a = [reflection.assemblyname]::GetAssemblyName($_.FullName).ProcessorArchitecture | |
| Write-Host $a $_.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
| var a$0 = 5; | |
| var add$0 = _fun$0('add', 2, function add(_arg0$0, _arg1$0) { | |
| var a$1 = _arg0$0, b$0 = _arg1$0; | |
| return _op$0('+', a$1, b$0); | |
| }); | |
| var add1$0 = _call$0(add$0, [1]); | |
| var b$1 = _call$0(add1$0, [a$0]); | |
| var _ref$0 = function () { | |
| var testInner$0 = 15; | |
| return _tupleCreate$0([ |
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 'whatwg-fetch'; | |
| let uuid = 0; | |
| function getCallbackName() { | |
| // Note: This does not run in node without a DOM | |
| // But, if you're in node, why are you using JSONP??? | |
| let name; | |
| do { | |
| name = `jsonp_callback_${uuid++}`; |
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
| export class AuthService { | |
| constructor() { | |
| this.token = null; | |
| this.user = null; | |
| } | |
| isAuthenticated() { | |
| if (this.user === null || this.token === null) { | |
| return false; | |
| } |
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
| /* Main */ | |
| @font-face { | |
| font-family: "Griffin"; | |
| font-weight: normal; | |
| font-style: normal; | |
| src: url('../Fonts/Griffin.ttf'); | |
| } | |
| @font-face { |
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
| { | |
| "version": "1.0.0-beta-*", | |
| "description": "Tiny F# web framework", | |
| "authors": [ "Alxandr" ], | |
| "owners": [ "Alxandr" ], | |
| "tags": [ "" ], | |
| "projectUrl": "https://github.com/YoloDev/Nini", | |
| "dependencies": { | |
| "YoloDev.Dnx.FSharp": { "type": "build", "version": "1.0.0-*" }, |