A few boxes drawn with Unicode box drawing characters:
╔═╦═╗
╠═╬═╣
║ ║ ║
╚═╩═╝
#![feature(macro_rules)] | |
extern crate collections; | |
extern crate sync; | |
use std::sync::{Arc, Mutex, RWLock, RWLockReadGuard}; | |
use std::sync::atomic::{AtomicBool, AtomicPtr, AtomicUint, Ordering, Relaxed, SeqCst}; | |
use std::ptr; | |
use std::ptr::{RawMutPtr}; | |
use std::slice::Items; |
template ctime: expr = | |
var result: seq[int] | |
for a in 1..10: | |
for v in 1..10: | |
result.add a+v | |
result | |
const foo = ctime() | |
echo foo |
type MyObj = ref object of RootObj | |
method output(self: MyObj) = | |
echo "Output something" | |
type ChildObj = ref object of MyObj | |
customvar: string | |
method newOutput(self: ChildObj) = | |
self.customvar = "Child output custom var too" |
import jester, asyncdispatch, htmlgen | |
proc foo(s:string):string = return s&"!" | |
when isMainModule: | |
let d:string="asdf" | |
routes: get "/": resp foo(d) # self.render_movie(self.latest_movie_id) | |
runForever() |
import macros | |
macro mac(n: expr): expr = | |
return quote do: | |
(proc(): int = | |
`n`.int) | |
template samething(n): expr = | |
(proc (): int = n.int) |
Some repositories have git-crypt enabled, which encrypts certain files. This doc describes how to add and remove users, using their GPG keys, and has associated scripts. (You can also just share the repo's symmetric key, which is simpler, but not covered here.)
A repo that has been git-crypt'd should have in its repo:
.gitattributes
- defines which files should be encrypted.git-crypt/keys/default/0/*.gpg
- .gpg file for every user (Each .gpg file is the repo's symmetric encryption key, which has been encrypted for a particular user with their individual public key. The filename is the user key's fingerprint.)