Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
ChrisLundquist / SlightlyImprovedExperienceBar.lua
Last active August 29, 2015 13:58
Slightly Improved Experience Bar Fix
-- Must be the first line
SIEB = {}
SIEB.name = "SlightlyImprovedExperienceBar"
SIEB.version = "1.3"
SIEB.throttle = {}
SIEB.defaults = {
minimumAlpha = 0.6,
showPercentageText = true,
-- Must be the first line
LARB = {}
-- Transparency value limit for the fading out of the experience bar. Value is the
-- minimum allowed, and should be a float number between 0 and 1. A value
-- of 0 would mimic the default behavior to hide the frame entirely.
LARB.minimumAlpha = 0.6
-- Boolean values to control the display of the text string that goes over the experience
-- bar. Values must be either 'true' or 'false'. If both are configured, the current/max
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 192.168.1.1 0.0% 396 1.7 1.0 0.6 34.0 2.2
2. br1-hsteps-v101.mbb.spectrumnet.us 0.0% 396 3.5 3.7 3.1 75.0 4.2
3. agg2-sea-a-t6-1-4000.bb.spectrumnet.us 0.0% 396 3.8 8.9 3.4 206.7 26.2
4. gi1-17.mag01.sea02.atla

test

  • thing
  • thing
$ gcc -Wall -Wextra -pedantic -std=c11 -O3 -S -march=corei7 main.c
# Gives you the popcnt assembly, GCC knows we have the instruction
$ gcc -Wall -Wextra -pedantic -std=c11 -O3 -S main.c
# Gives you the mask assembly
@ChrisLundquist
ChrisLundquist / English.md
Created August 17, 2014 00:16
Do you speak English?

Do you speak English?

There I was in Seattle, just walking out from one of my favorite coffee shops. As soon as I walk out, a stranger makes eye contact and asks a very simple question. Do you speak English?

I was a little confused by the question. People were speaking English all around him. Why did he ask me? I answered, "Yes".

He then proceeded to tell me a story about how he needs bus fare to get to Portland.

@ChrisLundquist
ChrisLundquist / Phad Thai.md
Last active October 11, 2019 02:42
Recipes

Serves 4

  • 1/4 cup white sugar
  • 2 tablespoons fish sauce
  • 2 tablespoons lime juice
  • 2 tablespoon tamarind concentrate (mixed with 1/4 cup water)
  • 1/2 (12 ounce) package dried rice noodles
  • 1/4 cup vegetable oil
  • 3/4 teaspoon minced garlic
  • 2 eggs
diff --git a/configure.ac b/configure.ac
index f713ce1..94b986c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2552,8 +2552,8 @@ AC_ARG_WITH(libmongoc, [AS_HELP_STRING([--with-libmongoc@<:@=PREFIX@:>@], [Path
with_libmongoc="no"
else
with_libmongoc="yes"
- LIBMONGOC_CPPFLAGS="$LIBMONGOC_CPPFLAGS -I$withval/include"
- LIBMONGOC_LDFLAGS="$LIBMONGOC_LDFLAGS -L$withval/lib"
$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
Rehearsal --------------------------------------------------------------
map_compact 0.020000 0.000000 0.020000 ( 0.015315)
map_inplace_compact 0.010000 0.000000 0.010000 ( 0.016069)
reject_map 0.010000 0.000000 0.010000 ( 0.014038)
reject_inplace_map 0.860000 0.010000 0.870000 ( 0.860999)
reject_map_inplace 0.010000 0.000000 0.010000 ( 0.013710)
reject_inplace_map_inplace 0.860000 0.000000 0.860000 ( 0.866945)
#!/usr/bin/env bash
wget http://www.chakoteya.net/NextGen/{101..277}.htm