Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"math"
"os"
"strconv"
"time"
"github.com/fogleman/fauxgl"
pragma solidity ^0.4.0;
contract C {
uint storedData;
function set(uint x) public {
storedData = x;
}
function get() public constant returns (uint) {
int netns_switch(char *name)
{
char net_path[PATH_MAX];
int netns;
snprintf(net_path, sizeof(net_path), "%s/%s", NETNS_RUN_DIR, name);
netns = open(net_path, O_RDONLY | O_CLOEXEC);
if (netns < 0) {
fprintf(stderr, "Cannot open network namespace \"%s\": %s\n",
name, strerror(errno));
root ~ # stat -c"%N" /proc/2294/ns/net
'/proc/2294/ns/net' -> 'net:[4026531957]'
root ~ # ip netns exec test zsh
root (test) ~ # stat -c"%N" /proc/2380/ns/net
'/proc/2380/ns/net' -> 'net:[4026532188]'
root (test) ~ # stat -c"%N" /proc/2294/ns/net
'/proc/2294/ns/net' -> 'net:[4026531957]'

Keybase proof

I hereby claim:

  • I am xaxes on github.
  • I am xaxes (https://keybase.io/xaxes) on keybase.
  • I have a public key ASDuYz0SeeVDKLazwFEtUUga972igZcOJLh60nzlCMyhEwo

To claim this, I am signing this object:

constructor() {
this.Header = new Header();
this.Log = new Log();
console.log(typeof this.messageHandler); // function
this.UserInput = new UserInput(this.messageHandler);
}
/*jshint esversion: 6 */
/*jslint browser: true */
class ZeroFrame {
constructor(url) {
console.log('New ZeroFrame');
//this.onMessage = this.onMessage.bind(this);
//this.route = this.route.bind(this);
//this.onOpenWebsocket = this.onOpenWebsocket.bind(this);
//this.onCloseWebsocket = this.onCloseWebsocket.bind(this);
this.url = url;
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
\usepackage{longtable}
\usepackage{booktabs}
$if(fontfamily)$
\usepackage{$fontfamily$}
$else$
\usepackage{lmodern}
$endif$
$if(linestretch)$
\usepackage{setspace}
C:\Users\xaxee>pandoc -V geometry:margin=0.5in -t latex -o "C:\Users\xaxee\OneDrive\Dokumenty\test.pdf" "C:\Users\xaxee\AppData\Local\Temp\tmp6235.tmp"
! LaTeX Error: Can be used only in preamble.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.66 \documentclass
pandoc: Error producing PDF from TeX source
@l-margiela
l-margiela / SassMeister-input.scss
Created May 1, 2015 15:36
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$solarized-base03: #002b36;
$solarized-base02: #073642;
$solarized-base01: #586e75;
$solarized-base00: #657b83;
$solarized-base0: #839496;