https://www.youtube.com/watch?v=dArgOrm98Bk
Just dump everything from mind
- Imagine 6 impossible things
- How can I make someone else happy right now?
- What's something in my immediate environment that I have never noticed?
| float[][] result; | |
| float t, c; | |
| float ease(float p) { | |
| p = c01(p); | |
| return 3*p*p - 2*p*p*p; | |
| } | |
| float ease(float p, float g) { | |
| p = c01(p); |
https://www.youtube.com/watch?v=dArgOrm98Bk
Just dump everything from mind
| version: "3" | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| container_name: "products_db_dev" | |
| ports: | |
| - "3396:3306" | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=root | |
| - MYSQL_DATABASE=products_db_dev |
| static class TaskExtensions | |
| { | |
| static Task<T> Return<T>(T task) => Task.FromResult(task); | |
| static async Task<R> Bind<T, R>(this Task<T> task, Func<T, Task<R>> cont) => | |
| await cont(await task.ConfigureAwait(false)).ConfigureAwait(false); | |
| static async Task<R> Map<T, R>(this Task<T> task, Func<T, R> map) => | |
| map(await task.ConfigureAwait(false)); |
| // Learn more about F# at http://fsharp.org | |
| open System | |
| open MongoDB.Driver | |
| open System.Security.Authentication | |
| type PostId = PostId of string | |
| type CommentId = CommentId of string | |
| OpenTypeExtension newExtension = new OpenTypeExtension(); | |
| newExtension.ExtensionName = "com.contoso.trackingKey"; | |
| newExtension.AdditionalData = new Dictionary<string, object>(); | |
| newExtension.AdditionalData.Add("trackingKeyMajor", "ABC"); | |
| newExtension.AdditionalData.Add("trackingKeyMinor", "123"); | |
| var extension = await graphClient.Users[email].Extensions.Request().AddAsync(newExtension); |
| open System | |
| open System.Globalization | |
| type ISplitter = | |
| abstract member Split: string -> int -> string[] | |
| type Splitter () = | |
| let folder (lim:int) (acc:string list) (el:string) = | |
| match acc with | |
| | head::tail -> |
| using System; | |
| class Program | |
| { | |
| static Func<int, int> CreateAdder(int a) | |
| { | |
| int F(int i) | |
| { | |
| Console.WriteLine($"Closured {a}"); | |
| return a + i; |
| let rec fib_a p = | |
| if (p = 0) || (p = 1) | |
| then 1 | |
| else | |
| fib_a(p-1)+fib_a(p-2) | |
| let rec fib_b p = | |
| match p with | |
| | 1 | 0 -> 1 |