Skip to content

Instantly share code, notes, and snippets.

View faried's full-sized avatar

Faried Nawaz faried

View GitHub Profile
--- dirs_2.h 1998-07-29 09:00:00.000000000 +0500
+++ dirs_2_fn.h 2013-12-20 01:51:00.000000000 +0500
@@ -40,17 +40,20 @@
if(loc provides (i.door_dir) && metaclass(loc.(i.door_dir))~=nothing)
j++;
if (j == 0) "There are no obvious exits.";
- print "You can go ";
+ print "Exits: ";
objectloop(i in Compass)
{
Switches d2xC0;
Constant Story "Tintash^";
Constant Headline "Your First Day At Tintash by Faried Nawaz^";
Release 3;
Constant DIALECT_US;
Include "Parser";
Include "Verblib";
"Tintash"
The story headline is "Your First Day At Tintash".
The story author is "Faried Nawaz".
The story genre is "Comedy".
The release number is 2.
Release along with a website, source text and an interpreter.
Include the Exit Descriptions by Matthew Fletcher.
@faried
faried / zenicb-idna.el
Created February 25, 2014 21:27
pasting utf-8 into zenicb buffers.
;;; very lightly tested.
;;; changes unicode text pasted into an icb buffer like
;;; The first novel to win the ‘Triple Crown’ of science fiction literature awards
;;; into
;;; <fn[13:12]> The first novel to win the xn--triple-vh0c xn--crown-3v3b of science fiction literature awards
;;; instead of
;;; <fn[13:12]> The first novel to win the ?Triple Crown? of science fiction literature awards
;; install the idn package, which gives you idna.el
### Keybase proof
I hereby claim:
* I am faried on github.
* I am self (https://keybase.io/self) on keybase.
* I have a public key whose fingerprint is EE7A 477C CEAF 6605 3683 DF7E 0DC5 7644 03C2 E04F
To claim this, I am signing this object:
@faried
faried / gist:f1a01fac78a790f32ebe
Created August 1, 2014 11:43
emacs-crash.txt
(gdb) bt
#0 0x00132416 in __kernel_vsyscall ()
#1 0x00c79dde in raise () from /lib/i386-linux-gnu/libpthread.so.0
#2 0x081fc07e in terminate_due_to_signal (sig=6, backtrace_limit=<optimized out>)
at emacs.c:387
#3 0x081fc0b2 in emacs_abort () at sysdep.c:2198
#4 0x081ff6e8 in XTredeem_scroll_bar.51380 (w=0x8730508) at xterm.c:6003
#5 0x081053dd in redisplay_window (window=141755661, just_this_one_p=false) at xdisp.c:16839
#6 0x08107a34 in redisplay_window_0.14682 (window=141755661) at xdisp.c:14250
#7 0x08180163 in internal_condition_case_1 (bfun=0x8107a10 <redisplay_window_0.14682>,
@faried
faried / dht.diff
Created August 13, 2014 10:30
changes against nictuku/dht to support the dht store extension (incomplete)
diff --git a/dht.go b/dht.go
index 9671b0b..53e42b9 100644
--- a/dht.go
+++ b/dht.go
@@ -144,14 +144,18 @@ type DHT struct {
peersRequest chan ihReq
nodesRequest chan ihReq
pingRequest chan *remoteNode
+ getRequest chan string
+ putRequest chan string
@faried
faried / Makefile
Created December 3, 2014 11:40
not the world's greatest makefile...
# Copyright (c) 2013 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# GNU Make based build file.  For details on GNU Make see:
# http://www.gnu.org/software/make/manual/make.html
#
#
@faried
faried / pn1.cc
Created December 3, 2014 11:43
using chibi-scheme in a nacl module: a rilly rilly simple example.
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/var.h"
#include "chibi/eval.h"
@faried
faried / index.html
Created December 3, 2014 11:52
chibi-scheme web page.
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<title>pn1</title>