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
import icu | |
s = "a🙂b✋c🙋d🇸e🤦🏼<200d>♂f" | |
print(s.encode('utf8')) | |
us = icu.UnicodeString(s) | |
locale = icu.Locale.getUS() | |
bi = icu.BreakIterator.createCharacterInstance(locale) | |
bi.setText(us) | |
start = 0 |
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
- |
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
#[crate_id = "n#0.1"] | |
#[crate_type = "lib"] | |
#![feature(phase)] | |
#[phase(syntax, link)] extern crate log; | |
pub fn foo() { | |
error!("This is an error log") | |
warn!("This is a warn log") | |
info!("this is an info log") |
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
{ | |
"sort": [ | |
{ | |
"pins.date_added": { | |
"order": "desc", | |
"nested_filter": { | |
"terms": { | |
"pins.owner_id": [ | |
569, | |
236663, |