Instantly share code, notes, and snippets.

View prepare-for-mdbook.sh
This file has been truncated, but you can view the full file.
#!/bin/bash
set -e
echo "Step 0: Create a new branch"
git branch mdbook-2
git checkout mdbook-2
View foo.md

this is text

here's a patch:

- foobar
+ All roads lead to Rome!
View TelemetryHistogramNameMap.h
/* This file is auto-generated, see gen_histogram_phf.py. */
#ifndef mozilla_TelemetryHistogramNameMap_h
#define mozilla_TelemetryHistogramNameMap_h
namespace mozilla {
namespace Telemetry {
const uint32_t sHistogramIDByNameLookupEntries[] = {
691,
View memory-usage.txt
Main Process: 296936
telemetry: 296936
impl: 464
histogram: 236832
shallow: 0
data: 236832
scalar: 8832
shallow: 8192
data: 640
WebRTC: 0
View .ctags
--langmap=ruby:+.rake
--regex-ruby=/(^|[:;])[ \t]*([A-Z][[:alnum:]_]+) *=/\2/c,class,constant/
--regex-ruby=/(^|;)[ \t]*(has_many|belongs_to|has_one|has_and_belongs_to_many)\(? *:([[:alnum:]_]+)/\3/f,function,association/
--regex-ruby=/(^|;)[ \t]*(named_)?scope\(? *:([[:alnum:]_]+)/\3/f,function,named_scope/
--regex-ruby=/(^|;)[ \t]*expose\(? *:([[:alnum:]_]+)/\2/f,function,exposure/
View travis.yml
language: node_js
node_js:
- "stable"
cache:
directories:
- node_modules
script:
- npm test
- npm run build
deploy:
View iter.rs
use std::iter;
#[derive(Debug)]
struct Book {
pub title: String,
}
#[derive(Debug)]
struct Library {
pub books: Vec<Book>,
View cssconf.rs
static mut module_instance: *mut ArcModule = 0 as *mut ArcModule;
mod color;
mod arc_module;
mod utils;
use color::Rgb;
use arc_module::ArcModule;
pub use utils::init;
View main.rs
extern crate reqwest;
extern crate flate2;
extern crate chrono;
#[macro_use]
extern crate log;
extern crate env_logger;
use std::process;
use std::env;
use std::fs::{self, File};
View main.rs
#![feature(termination_trait,termination_trait_lib)]
use std::process::Termination;
struct Exit(i32);
impl Termination for Exit {
fn report(self) -> i32 {
self.0
}