This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Vic Luo <vicluo96@gmail.com> | |
pkgname=xmradio-git | |
pkgver=0.5.1.14.ga5187cc | |
pkgrel=1 | |
pkgdesc="xmradio is a tiny Internet Xia Mi Radio client for Linux, which supports many radio style, skin builtin and many other features." | |
arch=('x86_64' 'i686') | |
url="https://github.com/timxx/xmradio" | |
license=('GPL3') | |
depends=('dbus' 'vlc') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template | |
void Unite2D(const Rectangle& other, bool allowEmpty = false) | |
{ | |
static_assert(sizeof...(Components) >= sizeof...(RhsComponents), "Cannot assign to type with less components than operand!"); | |
static_assert(meta_contains_types<meta_packer, meta_packer>::value, "Operand has components that are not part of this object!"); | |
m_Value.Unite2D(other.m_Value, allowEmpty); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CFLAGS=""\ | |
"-march=native -Ofast"\ | |
"-fmerge-all-constants"\ | |
"-fmodulo-sched -fmodulo-sched-allow-regmoves"\ | |
"-fgcse-sm -fgcse-las -fgcse-after-reload"\ | |
"-funsafe-loop-optimizations"\ | |
"-fdevirtualize-speculatively -fdevirtualize-at-ltrans"\ | |
"-fipa-pta"\ | |
"-ftree-loop-if-convert-stores -ftree-loop-distribution -ftree-loop-im"\ | |
"-ftree-parallelize-loops=$(nproc)"\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int foo(int a, int b) | |
{ | |
return (a % 3235272) % b; | |
} | |
int bar(int a) | |
{ | |
return foo(a, 88); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Contained within are all the useful Prolog functions learned in CS 341 this past semester (Fall 2012). | |
% NOTE: Any functions used that are not defined in this file are built-in functions. | |
% length(+As,-N) | |
% returns in N the length of the list As | |
length([],0). | |
length([A|As],N) :- length(As,M), N is M+1. | |
% append(+As,+Bs,-Cs) | |
% returns in Cs the append of lists As and Bs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define __forceinline inline | |
#include <iostream> | |
#include <embree2/rtcore.h> | |
#include <embree2/rtcore_ray.h> | |
// yuck. Required by Embree. | |
#include <xmmintrin.h> | |
#include <pmmintrin.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPTIONS=showexp,showscore,time,color,!autopickup,pickup_burden:unencumbered | |
OPTIONS=pickup_types:$?!/(+ | |
OPTIONS=autodig,fruit:slime mold,boulder:0 | |
OPTIONS=number_pad:2 | |
OPTIONS=suppress_alert:3.4.3 | |
MSGTYPE=hide "You displaced *." # pet displacement | |
OPTIONS=statuscolors | |
STATUSCOLOR=hp%100=green,hp%66=yellow,hp%50=orange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localhost:80 | |
gzip | |
ext .html | |
root /home/deploy/current/build/www | |
proxy /graphql localhost:3000 | |
rewrite /login { | |
to {path} /login | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in/python | |
# -*- coding: UTF-8 -*- | |
""" | |
Usage: | |
strace-process-tree filename | |
Read strace -f output and produce a process tree. | |
Recommended strace options for best results: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ue | |
# Sets up mq+$shed combo for given interface. | |
if [ $# -ne 2 ] || [ -z "$1" ] || [ -z "$2" ]; then | |
echo "usage: $0 interface scheduler" >&2 | |
echo " e.g: $0 eth0 fq" >&2 | |
echo " e.g: $0 eth0 pfifo_fast" >&2 | |
exit 64 # EX_USAGE | |
fi |
OlderNewer