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
// REFERENCE UNICODE TABLES: | |
// http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml | |
// http://www.tamasoft.co.jp/en/general-info/unicode.html | |
// | |
// TEST EDITOR: | |
// http://www.gethifi.com/tools/regex | |
// | |
// UNICODE RANGE : DESCRIPTION | |
// | |
// 3000-303F : punctuation |
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
use std::collections::HashMap; | |
use std::future::Future; | |
use std::pin::Pin; | |
use std::sync::{Arc, Mutex}; | |
use std::task::{Context, Poll}; | |
// Just placeholders. | |
type CronetPtr = i32; | |
type CronetError = Box<dyn std::error::Error>; | |
type CronetResponse = String; |
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
use std::future::Future; | |
use std::pin::Pin; | |
use std::sync::{Arc, Mutex}; | |
use std::task::{Context, Poll}; | |
// Just placeholders. | |
type CronetPtr = i32; | |
type Error = Box<dyn std::error::Error>; | |
type CronetResult = std::result::Result<(), Error>; |
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
use std::collections::HashMap; | |
use std::sync::Mutex; | |
use lazy_static::lazy_static; | |
type GlobalMap = Mutex<HashMap<&'static str, &'static str>>; | |
lazy_static! { | |
static ref GLOBAL_DATA2: GlobalMap = Mutex::new(HashMap::new()); | |
} |
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
/* Since script loading is dynamic, we take | |
a callback function with our loadScript call | |
that executes once the script is done downloading/parsing | |
on the page. | |
*/ | |
var loadScript = function(src, callbackfn) { | |
var newScript = document.createElement("script"); | |
newScript.type = "text/javascript"; | |
newScript.setAttribute("async", "true"); | |
newScript.setAttribute("src", src); |
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
from django.core.management import setup_environ | |
from django.contrib.localflavor.us.us_states import STATE_CHOICES | |
from pyquery import PyQuery as pq | |
import settings, time | |
setup_environ(settings) | |
from myproject.writers.models import Location |
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
import React from 'react'; | |
import Video from './Video'; | |
class MyGenericApp extends React.Component { | |
render() { | |
return <div> | |
<Video src="my_video_url" poster="my_poster_url" /> | |
</div>; | |
} | |
} |
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
var util = require('util'), | |
http = require('http'), | |
events = require('events'); | |
var Twitter = function(opts) { | |
this.username = opts.username; | |
this.password = opts.password; | |
this.track = opts.track; | |
this.data = ''; | |
}; |
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
#!/bin/sh | |
# shellcheck shell=dash | |
# This is just a little script that can be downloaded from the internet to | |
# install SmashEnabler. | |
# | |
# It runs on Unix shells like {a,ba,da,k,z}sh. It uses the common `local` | |
# extension. Note: Most shells limit `local` to 1 var per line, contra bash. | |
# | |
# Borrow heavily and liberally from rustup's install script. ;P |
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
BEGIN MESSAGE. | |
VenBkaimvRMIPOo PTQMKFv9nlQPkrt Z8ZgVPVnJbnTBPT SmDTDHPHbr5Ayyv | |
ZxZsrGjpEkuCMy1 wiCFHpIaBxqTCKq 6Xr2MZHgg7Ci9mz qZCbwrVMkyYzc1R | |
4ejwW0WiGNZpvDu 1AcRFc8fl07FfcA 7I5l6Bd1ewiyYME KuMkAULCR5BtoWo | |
JPyyCzEDj40wXJy MsyBsT5lxmCqASL mD4gr0aLMzWSiL. | |
END MESSAGE. |
NewerOlder