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: '2' | |
| services: | |
| web: | |
| image: my-nginx-php-fpm-image | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - ./site:/site |
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: '2' | |
| services: | |
| nginx: | |
| image: nginx:1.15.8-alpine | |
| ports: | |
| - "80:80" | |
| networks: | |
| - code-network |
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
| // example usable | |
| for (child, next) in values.iter().with_next() { | |
| // do stuff | |
| } | |
| struct WithNext<I> | |
| where | |
| I: Iterator, | |
| { |
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
| [package] | |
| name = "testo-slack" | |
| version = "0.1.0" | |
| authors = ["joseph.lenton@askattest.com <joseph.lenton@askattest.com>"] | |
| [dependencies] | |
| slack = "0.20.0" | |
| failure = "0.1.1" |
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
| function wrap<T, K extends keyof T>( | |
| obj: T, | |
| ): { | |
| [key in K]: () => T[K] | |
| } { | |
| return null as any | |
| } | |
| const person = { |
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
| function wrap<K extends string>( | |
| obj: { | |
| [k in K]: number | |
| }, | |
| key: K, | |
| ): number; | |
| function wrap<K extends string>( | |
| obj: { |
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
| function f<A, B>(_a: A, _b: B) { | |
| } | |
| // This works ... | |
| f( 5, 'string' ) | |
| // This works ... | |
| f<number, string>( 5, 'string' ) |
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
| // in main.rs | |
| extern crate acli; | |
| fn main() { | |
| let args = acli::app::args::Args::from_args(); | |
| println!("calling {}", args.url); | |
| } | |
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
| // in main.rs | |
| extern crate structopt; | |
| extern crate acli; | |
| use structopt::StructOpt; | |
| fn main() { | |
| let args = acli::app::args::Args::from_args(); | |
| println!("calling {}", args.url); | |
| } |
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
| "============================================================================== | |
| " | |
| " .vimrc | |
| " | |
| " My own .vimrc settings. It aims to be independant of the plugins also | |
| " included, so this could be used without them. | |
| " | |
| "============================================================================== |
NewerOlder