Instantly share code, notes, and snippets.

View janerik.zsh-theme
# vim: ft=sh
# via: https://github.com/mitsuhiko/dotfiles/blob/master/zsh/custom/themes/mitsuhiko.zsh-theme
setopt prompt_subst
export LSCOLORS=ExGxFxDxCxHxHxCbCeEbEb
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[blue]%}git%{$reset_color%}:"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}+"
ZSH_THEME_GIT_PROMPT_BRANCH=""
View playground.rs
#![allow(unused)]
use std::collections::HashMap;
#[derive(Debug)]
enum Scalar {
String(String),
Unsigned(u32),
Bool(bool),
}
View playground.rs
use std::any::Any;
use std::any::TypeId;
#[derive(Debug)]
enum Scalar {
String(String),
Unsigned(u32),
Bool(bool),
}
View playground.rs
#![allow(unused)]
mod generic {
pub struct Scalar<T: Default> {
value: T,
}
impl<T: Default> Scalar<T> {
pub fn new() -> Self {
Scalar {
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: