I hereby claim:
- I am hxy9243 on github.
- I am oldgun (https://keybase.io/oldgun) on keybase.
- I have a public key whose fingerprint is 1FEC 53C7 6563 4A01 743D D60B D24F 1493 1403 9F1B
To claim this, I am signing this object:
FROM ubuntu | |
MAINTAINER Kevin Hu <[email protected]> | |
ARG LLVM_SRC=llvm-project | |
RUN apt-get update | |
RUN apt-get install -y cmake ninja-build $COMPILER | |
RUN apt-get build-dep -y llvm clang | |
RUN apt-get clean |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import cgi | |
import json | |
import time | |
import random | |
print("Content-type:text/json\n") | |
form = cgi.FieldStorage() |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Install melpa | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(when (>= emacs-major-version 24) | |
(require 'package) | |
(add-to-list | |
'package-archives | |
'("melpa" . "http://melpa.org/packages/") | |
t) | |
(package-initialize)) |
''' | |
Credits: This challenge has appeared in a google competition before. | |
Once upon a time in a strange situation, people called a number ugly if it was divisible by any of the one-digit primes (2, 3, 5 or 7). Thus, 14 is ugly, but 13 is fine. 39 is ugly, but 121 is not. Note that 0 is ugly. Also note that negative numbers can also be ugly: -14 and -39 are examples of such numbers. | |
One day on your free time, you are gazing at a string of digits, something like: | |
123456 | |
You are amused by how many possibilities there are if you are allowed to insert plus or minus signs between the digits. For example you can make: | |
1 + 234 - 5 + 6 = 236 | |
which is ugly. Or |
// More details on http://howtowriteaprogram.blogspot.com/2010/11/lisp-interpreter-in-90-lines-of-c.html | |
// Scheme Interpreter in 90 lines of C++ (not counting lines after the first 90). | |
// Inspired by Peter Norvig's Lis.py. | |
// Made by Anthony C. Hay in 2010. See http://howtowriteaprogram.blogspot.co.uk/ | |
// This is free and unencumbered public domain software, see http://unlicense.org/ | |
// This code is known to have faults. E.g. it leaks memory. Use at your own risk. | |
#include <iostream> |
getting analysis usage | |
Running Split BB Pass | |
split on priv_raise in foo | |
split on priv_raise in foo | |
split on priv_raise in foo | |
split on priv_raise in bar | |
split on priv_raise in nothing | |
split on priv_lower in foo |
a.out | |
out | |
*.txt | |
\#*# | |
~ |
#!/usr/bin/python | |
""" | |
For more information, see: https://help.ubuntu.com/community/SlideshowWallpapers | |
# 1: Create the following xml file to add wallpaper slideshow | |
~/.local/share/gnome-background-properties/MyFirstSlideshowCollection.xml | |
With the following content: | |
<?xml version="1.0" encoding="UTF-8"?> |
class ModuleParser | |
def initialize | |
@ast_prog = nil | |
@ast_queue = Array.new | |
@any_text = SeqRule.new(:line, [Any]) | |
@ignore_rest = RepRule.new(:line, @any_text) | |
pri_type = AltRule.new(:line, [Literal["i64"], Literal["i32"], Literal["i8"], Literal["i1"], Literal["void"], Literal["double"], Literal["float"]]) | |
pointers = RepRule.new(:line, SeqRule.new(:line, [Literal['*']]), [], lambda {|w| return w[0]!='*'}) |