Glide is the easiest way to create useful slide for all of your Gists.
- input key
<-
to go backward. - input key
->
to go forward.
/Users/masakielastic/.phpbrew/build/php-5.6.0alpha3/ext/openssl/xp_ssl.c:88:12: warning: | |
'SSL_get_error' is deprecated: first deprecated in OS X 10.7 | |
[-Wdeprecated-declarations] | |
int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); | |
^ | |
/usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here | |
int SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_... | |
^ | |
/Users/masakielastic/.phpbrew/build/php-5.6.0alpha3/ext/openssl/xp_ssl.c:107:8: warning: | |
'ERR_peek_error' is deprecated: first deprecated in OS X 10.7 |
require 'formula' | |
# When trunk is 3.x, then 3.x is devel and 3.(x-1) | |
# is stable. | |
# https://code.google.com/p/v8/issues/detail?id=2545 | |
# http://omahaproxy.appspot.com/ | |
class V8 < Formula | |
homepage 'http://code.google.com/p/v8/' | |
url 'https://github.com/v8/v8/archive/3.25.zip' |
{"cr":[13],"lf":[10],"control":[0,1,2,3,4,5,6,7,8,9,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,173,1536,1537,1538,1539,1540,1541,1564,1757,1807,6158,8203,8206,8207,8232,8233,8234,8235,8236,8237,8238,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,55296,55297,55298,55299,55300,55301,55302,55303,55304,55305,55306,55307,55308,55309,55310,55311,55312,55313,55314,55315,55316,55317,55318,55319,55320,55321,55322,55323,55324,55325,55326,55327,55328,55329,55330,55331,55332,55333,55334,55335,55336,55337,55338,55339,55340,55341,55342,55343,55344,55345,55346,55347,55348,55349,55350,55351,55352,55353,55354,55355,55356,55357,55358,55359,55360,55361,55362,55363,55364,55365,55366,55367,55368,55369,55370,55371,55372,55373,55374,55375,55376,55377,55378,55379,55380,55381,55382,55383,55384,55385,55386,55387,55388,55389,55390,55391,55392,55393,55394,55 |
<?php | |
define('ANY', 2); | |
define('CR', 4); | |
define('LF', 8); | |
define('CONTROL', 16); | |
define('EXTEND', 32); | |
define('REGIONAL_INDICATOR', 64); | |
define('SPACINGMARK', 128); | |
define('L', 256); | |
define('V', 512); |
class String | |
def grapheme_length | |
length = self.length | |
grapheme_length = 0 | |
pos = 0 | |
while (pos < length) do | |
next_length = grapheme_next_length(pos) | |
pos += next_length | |
grapheme_length += 1 |
package main | |
import ( | |
"unicode/utf8" | |
) | |
func main() { | |
str := "葛\U000E0101飾区" | |
print_each_grapheme(str) | |
} |
# -*- coding: utf-8 -*- | |
import sys | |
def utf8_chr(cp): | |
if 0xFFFF < sys.maxunicode or cp < 0x10000: | |
return unichr(cp) | |
cp -= 0x10000 | |
high = cp >> 10 | 0xD800 |
#include <iostream> | |
#include <string> | |
#include <map> | |
#include <vector> | |
void print_each_grapheme(std::string); | |
std::tuple<int, int> utf8_next(std::string, int, int); | |
bool in_char_class(int, std::vector<std::string>); | |
int main(void) |
#include <stdbool.h> | |
enum { | |
Any = 2, | |
CR = 4, | |
LF = 8, | |
CONTROL = 16, | |
EXTEND = 32, | |
REGIONAL_INDICATOR = 64, | |
SPACINGMARK = 128, |