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
| // Usage: go run left-code.go | |
| // Configure: base_url = "http://127.0.0.1:1400/codex/v1" | |
| package main | |
| import ( | |
| "bytes" | |
| "flag" | |
| "fmt" | |
| "io" |
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
| (function () { | |
| function escapeHtml(unsafe) { | |
| return unsafe | |
| .replace(/&/g, "&") | |
| .replace(/</g, "<") | |
| .replace(/>/g, ">") | |
| .replace(/"/g, """) | |
| .replace(/'/g, "'"); | |
| } |
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
| #!/usr/bin/python | |
| from __future__ import print_function | |
| import argparse | |
| import json | |
| import os | |
| import sys | |
| def collect_mtime_list(path): |
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
| extern crate proc_macro; | |
| use quote::quote; | |
| use proc_macro::TokenStream; | |
| use syn::*; | |
| use syn::parse::{Parse, ParseStream}; | |
| #[derive(Debug)] | |
| struct MetricDefinition { | |
| vis: Visibility, |
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
| #[macro_use] | |
| extern crate lazy_static; | |
| use hyper::rt::Future; | |
| use hyper::service::service_fn_ok; | |
| use hyper::{Body, Request, Response, Server}; | |
| use prometheus::*; | |
| use rand::prelude::*; | |
| lazy_static! { |
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
| //! AST vs RPN evaluation performance in Rust language. | |
| #![feature(test)] | |
| extern crate test; | |
| #[derive(Clone, Copy, Debug)] | |
| pub enum Function { | |
| Plus, | |
| Minus, |
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 through2 from 'through2'; | |
| import { BufferReader } from 'protobufjs'; | |
| function decodeProtobuf(decodeFunc, msgMaxSize = 20 * 1000 * 1000) { | |
| const buffer = Buffer.alloc(msgMaxSize); | |
| const reader = new BufferReader(buffer); | |
| let bufferLen = 0; // The length of valid data in buffer, may contain multiple messages | |
| reader.pos = 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
| (function () { | |
| const VERTEX_SHADER = ` | |
| attribute vec4 a_position; | |
| attribute vec2 a_texcoord; | |
| varying vec2 v_texcoord; | |
| void main() { | |
| gl_Position = a_position; |
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
| @include-when-export url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext); | |
| @font-face { | |
| font-family: 'Open Sans'; | |
| font-style: normal; | |
| font-weight: normal; | |
| src: local('Open Sans Regular'),url('./github/400.woff') format('woff') | |
| } | |
| @font-face { |
NewerOlder