Skip to content

Instantly share code, notes, and snippets.

View nuclearsandwich's full-sized avatar

Steven! Ragnarök nuclearsandwich

View GitHub Profile
@nuclearsandwich
nuclearsandwich / app.lua
Last active August 29, 2015 14:21
Lapis errors with before filter.
local lapis = require("lapis")
local app = lapis.Application()
local github_auth = require("github/auth");
app:enable("etlua")
app.layout = require("views.layout")
app:before_filter(function(self)
if not self.current_user then
self:write({
@nuclearsandwich
nuclearsandwich / output.txt
Created April 25, 2015 10:04
Why is luarocks not showing me the latest lapis version?
$ luarocks search lapis
Search results:
===============
Rockspecs and source rocks:
---------------------------
lapis
@nuclearsandwich
nuclearsandwich / coffee.md
Last active August 29, 2015 14:15
Coffee in Austin, TX
  • Cenote
  • Vintage Heart Coffee
  • Figure 8 Coffee Purveyors
  • Caffé Medici
  • Patika Coffee
  • Flat Track Coffee
  • Quickie Pickie
  • Thunderbird
  • Bennu
  • Rio Rita
@nuclearsandwich
nuclearsandwich / bitcoin.md
Last active August 29, 2015 14:11
bitcoin.md

bitcoin://1234abc

@nuclearsandwich
nuclearsandwich / gist:e4f7cd408c1ecf663f23
Last active August 29, 2015 14:08
LED Group Buy anonimized order list
+------------+-----------+-----------+---------------+-------------+-----------+
| User code | Cyan LEDs | Pink LEDs | Sky Blue LEDs | SIP Sockets | Status |
+------------+-----------+-----------+---------------+-------------+-----------+
| 0176359551 | 200 | 200 | 200 | 200 | SHIPPED |
| 01cf936915 | 0 | 300 | 510 | 0 | SHIPPED |
| 03c5ecbe87 | 0 | 100 | 200 | 0 | SHIPPED |
| 0857787b02 | 200 | 200 | 200 | 200 | SHIPPED |
| 0b3d83889c | 1 | 1 | 1 | 600 | SHIPPED |
| 15b90bb5c0 | 0 | 0 | 0 | 0 | CANCELLED |
| 17f59bd2c1 | 0 | 0 | 0 | 240 | SHIPPED |
@nuclearsandwich
nuclearsandwich / gist:1ecc247fd7002ad47eb8
Last active August 29, 2015 14:06
moar physics crap
m = 1.67e-27
me = 9.11e-31
x = 0.03
x0 = 0
v0 = 4.7e6
v = 0
e = 1.6e-19
a = (v0*v0) / (2 * x)
efield = (m*v0*v0) / (2*x*e)
http://upload.wikimedia.org/wikipedia/commons/e/e9/Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png

####API 接口文档

字段 类型 是否必须 说明
userName string true 用户名
password string true 密码

[ ] a [x] b

  • c
  • d

If user is careless, forgetting to put "- " before "[ ]", TODO list could get buggy.

Steps to reproduce bug:

  • on parsed MD page of list above, tick "c" to note that "c" is done.
  • Now, edit the file.

[x] a [ ] b

  • c
  • d

If user is careless, forgetting to put "- " before "[ ]", TODO list could get buggy.

Steps to reproduce bug:

  • on parsed MD page of list above, tick "c" to note that "c" is done.
  • Now, edit the file.