'Cluster', space-time travel,
inspired by 'Nebula'
A Pen by valery sntx on CodePen.
'Cluster', space-time travel,
inspired by 'Nebula'
A Pen by valery sntx on CodePen.
| class Greeter<T> | |
| { | |
| greeting: T; | |
| constructor(message: T) { | |
| this.greeting = message; | |
| } | |
| greet() { | |
| return this.greeting; | |
| } | |
| } |
| { | |
| "env": { | |
| "es6": true, | |
| "jest": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 6, | |
| "ecmaFeatures": { | |
| "jsx": true, | |
| "templateStrings": true, |
| // start new. | |
| var editor = CKEDITOR.replace(element, { | |
| enterMode: CKEDITOR.ENTER_BR, | |
| shiftEnterMode: CKEDITOR.ENTER_BR, | |
| allowedContent: true | |
| }); | |
| ... | |
| set /p id="(Reminder) Did you start a vm? and is it available in adb? " | |
| start cmd /k react-native start | |
| rem *** HACK ALERT: Sleep for 10 seconds *** | |
| ping -n 10 127.0.0.1 > nul | |
| start cmd /k react-native run-android |
| using Models; | |
| using System; | |
| using System.Linq; | |
| using System.Linq.Dynamic; | |
| using System.Linq.Expressions; | |
| namespace Repository | |
| { | |
| public interface IGenericRepository<T> | |
| { |
| public class StructureMapServiceLocator : ServiceLocatorImplBase { | |
| private IContainer container; | |
| public StructureMapServiceLocator(IContainer container) { | |
| this.container = container; | |
| } | |
| /// <summary> | |
| /// When implemented by inheriting classes, this method will do the actual work of resolving | |
| /// the requested service instance. |
| var jsonContentTypeHeaders = new Headers(); | |
| jsonContentTypeHeaders.append("Content-Type", "application/json"); | |
| fetch("http://localhost:5000/v1/permissions/getlist",{ | |
| method: 'GET', | |
| headers: jsonContentTypeHeaders, | |
| mode: 'cors', | |
| cache: 'default'}) |
| @echo off | |
| @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
| @cinst DotNetCLI | |
| @powershell -NoProfile -ExecutionPolicy None -Command "Invoke-Expression \""((New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/4/6/1/46116DFF-29F9-4FF8-94BF-F9BE05BE263B/DotNetCore.1.0.0.RC2-VS2015Tools.Preview1.exe','DotNetCore.1.0.0.RC2-VS2015Tools.Preview1.exe'))\"" | |
| @DotNetCore.1.0.0.RC2-VS2015Tools.Preview1.exe | |
| @powershell -NoProfile -ExecutionPolicy None -Command "Invoke-Expression \""((New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/4/6/1/46116DFF-29F9-4FF8-94BF-F9BE05BE263B/packages/DotNetCore.1.0.0.RC2-SDK.Preview1-x64.exe','DotNetCore.1.0.0.RC2-SDK.Preview1-x64.exe'))\"" | |
| @DotNetCore.1.0.0.RC2-SDK.Preview1-x64.exe | |
| @pause |
| /* start 100 parallel tasks, and wait all results asyncronously */ | |
| Enumerable.Range(0,100) | |
| /* .AsParallel() */ | |
| .Select( | |
| /* async timer sequence */ | |
| async x=> await Observable.FromAsync( | |
| async (t) => Task.FromResult( | |
| /* will stop after 500 milliseconds */ | |
| await Observable.Interval(TimeSpan.FromMilliseconds(100)).Take(5).Replay() |