I hereby claim:
- I am xu-cheng on github.
- I am xucheng (https://keybase.io/xucheng) on keybase.
- I have a public key whose fingerprint is 0C60 744C 59EF 7255 8FD0 702A 8794 B5D7 A3C6 7F70
To claim this, I am signing this object:
| // Ref: | |
| // https://github.com/mobilecoinofficial/mc-oblivious/blob/master/aligned-cmov/src/cmov_impl_asm.rs | |
| #include <cassert> | |
| #include <cstddef> | |
| #include <cstdint> | |
| // cmov 64 bits data | |
| inline __attribute__((always_inline)) void cmov_u64(const bool condition, | |
| const uint64_t* src, |
I hereby claim:
To claim this, I am signing this object:
| ## extract Formula | |
| git filter-branch -f --prune-empty \ | |
| --subdirectory-filter 'Library' \ | |
| -- --all | |
| git filter-branch -f --prune-empty \ | |
| --index-filter \ | |
| 'git rm --cached --ignore-unmatch -r -q -- . ; git reset -q $GIT_COMMIT -- Formula Aliases;' \ | |
| -- --al | |
| ## extract core |
| formula = ARGV.formulae.first | |
| pkg_config_name = ARGV.value("pkg-config-name") || formula.name | |
| dep_formulae_list = [] | |
| env_methods_list = [] | |
| cflags_I = `pkg-config --cflags-only-I #{pkg_config_name}`.chomp.split. | |
| map { |f| f.sub(/^-I/, "") }.map do |path| | |
| if path =~ %r{^#{Regexp.escape(HOMEBREW_CELLAR.to_s)}/([^/]+)/[^/]+/(include|lib)(/.*)?} || | |
| path =~ %r{^#{Regexp.escape(HOMEBREW_PREFIX.to_s)}/opt/([^/]+)/(include|lib)(/.*)?} | |
| if $1 == formula.name | |
| %[-I\#{#{$2}}#{$3}] |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright (c) 2013 by Xu Cheng ([email protected]) | |
| # | |
| import urllib2 | |
| import json |
| ##################################################### | |
| # LaTeX Makefile | |
| # Author: Xu Cheng | |
| # | |
| # This Makefile is used to compile LaTeX documents | |
| # Included is basic support for BibTeX bibliographies | |
| # | |
| # This Makefile is written based on below document: | |
| # http://www.physics.wm.edu/~norman/thesis/Makefile | |
| ##################################################### |
| # CountDown Timer for iPad | |
| # Copyright (c) 2013 by Xu Cheng | |
| # Usage: | |
| # one figure: start/pause/resume the timer. | |
| # two figures: reset the timer. | |
| # three figures: set the initial time of timer. | |
| from scene import * | |
| from time import time | |
| from math import modf |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright (c) 2013 by Xu Cheng ([email protected]) | |
| # | |
| import sys | |
| if sys.version[0] == '2': | |
| from io import open |
| import os | |
| import re | |
| import sublime | |
| cygwin_drive_regex = re.compile(r"^/cygdrive/([a-zA-Z])/") | |
| def cygwin_path_handle(path): | |
| """Cygwin Path Support""" | |
| if sublime.platform() == "windows": | |
| return os.path.normcase(re.sub(cygwin_drive_regex, lambda m: "%s:/" % m.groups()[0], path)) |
| { | |
| "show_output_panel": false, | |
| "dont_prepend_clang_includes": true, | |
| "additional_language_options": | |
| { | |
| "c++" : | |
| [ | |
| "-std=gnu++11", | |
| "-isystem", "C:\\cygwin\\usr\\i686-w64-mingw32\\sys-root\\mingw\\include\\c++\\4.8.0", |