Skip to content

Instantly share code, notes, and snippets.

View faried's full-sized avatar

Faried Nawaz faried

View GitHub Profile
@faried
faried / gargoyle.diff
Created September 20, 2015 12:18
gargoyle from git HEAD; Apple LLVM version 7.0.0 (clang-700.0.72); Mac OS 10.10.5
diff --git a/Jamrules b/Jamrules
index 12fc83f..36ee295 100644
--- a/Jamrules
+++ b/Jamrules
@@ -138,10 +138,10 @@ switch $(OS)
case MACOSX :
Echo "OS is MACOSX (cocoa)" ;
SUFDLL = .dylib ;
- MAINARCH = -arch i386 ;
+ MAINARCH = -arch x86_64 ;
#!/usr/bin/env python
import optparse
import subprocess
import sys
import tempfile
import zlib
def doit(opts, pkg):
@faried
faried / wordproblems.py
Created July 5, 2015 14:45
simple word problems in python
#!/usr/bin/env python
"""Simple word questions.
pip install python-slugify gTTS inflect
"""
from random import choice, randint, randrange
import os
import os.path
from time import sleep
@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>
@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 / 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 / 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 / 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>,
### 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 / 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