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
C:\Windows\System32\Robocopy.exe /E /R:3 /W:10 /FP /MT:25 /V "<SOURCE_DIRECTORY>" "<TARGET_DIRECTORY>" |
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
ls | Sort-Object LastWriteTime | select -last 10 |
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
rmdir /s /q <DIRECTORY_TO_DELETE> |
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
Robocopy.exe /E /R:3 /W:10 /FP /MT:25 /V "<SOURCE_DIRECTORY>" "<TARGET_DIRECTORY>" |
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
class AutocompleteController extends Stimulus.Controller { | |
static get targets() { | |
return [ "results" ] | |
} | |
initialize() { | |
this.fakeFetch() | |
setInterval(this.fakeFetch.bind(this), 1500) | |
} | |
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
javascript: function runDownloadThing(howManyToDownload) { | |
if (!howManyToDownload) { | |
howManyToDownload = 3; | |
} | |
if (window['downloadSome']) { | |
window.downloadSome(); | |
return; | |
} | |
var iter = $('div.download a.a:not([download])').toArray(); | |
iter = iter.concat($('div.row a[download]').toArray()); |
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
struct NoLifetime {} | |
struct WithLifetime <'a> { | |
pub field: &'a i32 | |
} | |
fn main() { | |
let mut some_val = NoLifetime{}; | |
borrow_mut_function(&mut some_val); | |
borrow_mut_function(&mut some_val);//Borrowing as mutable for the second time. | |
let num = 5; |
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
struct StructNoLifetime {} | |
impl StructNoLifetime { | |
pub fn do_nothing(&mut self) { | |
} | |
} | |
struct StructWithLifetime <'a> { | |
pub field: &'a i32 | |
} | |
fn main() { |
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
fn main() { | |
println!("Hello everyone!"); | |
println!(r#"First line! | |
We are here to learn about the language "{}", | |
a really neat language."#, | |
"Rust"); | |
println!("Multiline.\ | |
Ignores leading whitespace and newline"); | |
} |
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
macro_rules! assign_do_nothing { | |
( $( $x:expr ),* ) => { | |
{ | |
$( | |
let _curr = $x; | |
)* | |
} | |
}; | |
} |
NewerOlder