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
JSON.stringify(Ext.Array.map(store1.getRange(), function(o) { return o.data; }), null, ' '); |
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
filters: [ | |
["JSON Files", "*.json"], | |
["All Files", "*.*"] | |
] | |
// or | |
filters: [{ |
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
(void)windowDidResize:(NSNotification*)notification { | |
if (!shell_->window_state->ignore_changes) { | |
NSWindow* window = [notification object]; | |
shell_->window_state->last_frame = window.frame; | |
if (shell_->window_state->state != Ion::IonUI::Window::STATE_HIDDEN) { | |
if (window.isZoomed && shell_->window_state->type == Ion::IonUI::Window::TYPE_NORMAL) | |
shell_->window_state->state = Ion::IonUI::Window::STATE_MAXIMIZED; | |
else | |
shell_->window_state->state = Ion::IonUI::Window::STATE_NORMAL; |
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
How Do Court Reporters Keep Straight Faces? | |
These are from a book called Disorder in the Courts and are things people actually said in court, word for word, taken down and published by court reporters that had the torment of staying calm while the exchanges were taking place. | |
ATTORNEY: What was the first thing your husband said to you that morning? | |
WITNESS: He said, 'Where am I, Cathy?' | |
ATTORNEY: And why did that upset you? | |
WITNESS: My name is Susan! | |
_______________________________ | |
ATTORNEY: What gear were you in at the moment of the impact? |
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
SemaphoreSlim signal = new SemaphoreSlim(0, 1); | |
// set signal in event | |
signal.Release(); | |
// wait for signal somewhere else | |
await signal.WaitAsync(); | |
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
QString::Data *QString::fromLatin1_helper(const char *str, int size) | |
{ | |
Data *d; | |
if (!str) { | |
d = Data::sharedNull(); | |
} else if (size == 0 || (!*str && size < 0)) { | |
d = Data::allocate(0); | |
} else { | |
if (size < 0) | |
size = qstrlen(str); |
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
running 1 test | |
test it_works ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured | |
Doc-tests ironentities | |
/Users/jarred/blah/rust/src/lib.rs:2:1: 2:18 error: multiple rlib candidates for `log` found | |
/Users/jarred/blah/rust/src/lib.rs:2 extern crate log; | |
^~~~~~~~~~~~~~~~~ | |
/Users/jarred/blah/rust/src/lib.rs:2:1: 2:18 note: candidate #1: /Users/jarred/blah/rust/target/debug/deps/liblog-045aab9d45b4c031.rlib |
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! recurse { | |
($prop_name:ident: $prop_type:ty) => ( | |
println!("{}: {}", stringify!($prop_name), stringify!($prop_type)); | |
); | |
($($prop_name:ident: $prop_type:ty),*) => ( | |
recurse!($($prop_name: $prop_type),*); | |
); | |
} | |
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
for x in 0..10 { | |
let promise = Promise::<u32,&str>::new(move || { | |
match x { | |
0 => Err("Division by zero"), | |
_ => Ok(x * 2) | |
} | |
}).success(move |res| { | |
assert_eq!(res, x * 2); | |
Ok(res * 2) | |
}).success(|res| { |
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
[replace] | |
"serde_codegen:0.7.10" = { git = "https://github.com/serde-rs/serde", rev = "8a09f05644ad286e5a18c714ec1af58ed90d1d8b" } |
OlderNewer