Skip to content

Instantly share code, notes, and snippets.

@kkspeed
kkspeed / menumanager.moon
Created November 24, 2015 04:53
Moonscript implemenation of More Weapon Stats's menumanager
-- More Weapon Stats Moonscript Trial
-- orignally modified from menumanager.lua from TdlQ and KarateF22's MoreWeaponStats
-- at http://paydaymods.com/mods/138/MWS
-- translated into moonscript by kkspeed
class MoreWeaponStats extends _G.MoreWeaponStats
@_path = ModPath
@_data_path = "#{SavePath}more_weapon_stats.txt"
@settings = {
show_dlc_info: true,
separate_extended_stats: false,
@kkspeed
kkspeed / gist:f13fe23813ec09b066bd
Created May 5, 2015 05:08
Simple Python Parser for Leetcode 65 - Valid Number
# So.. I wrote a parser for that... I know there are many easier ways,
# but this parser just feels more generic and with a little extension
# for result handling, it can actually be extended to a fully functional
# recursive descendant parser.
# The parser is based on Monadic Parsing common in functional languages
class Parser:
def parse(self, a):
pass
@kkspeed
kkspeed / gist:1dfb964009b19ae00ac3
Created March 2, 2015 18:37
Creating archives -- simple wrapper on Hakyll tags
module Hakyll.Web.Archives
( Archives
, buildArchives
, archiveField
, archiveRules) where
import Control.Applicative
import Data.List (intercalate, sort)
import Data.Time
import System.Locale (defaultTimeLocale)