Skip to content

Instantly share code, notes, and snippets.

View zmughal's full-sized avatar
🌿
fiddling with attribute grammars.

Zaki Mughal [sivoais] zmughal

🌿
fiddling with attribute grammars.
View GitHub Profile
@zmaril
zmaril / softwarehelpskill.md
Last active August 3, 2021 04:52
I want to write software that helps kill people.

I want to write software that helps kill people.

Please, before you call the police and get my github account put on lockdown, allow me a moment to explain. What I really want to do is work on projects that advance the human condition and improve people's lives. I've been in a mad dash to learn how to program for the past four or five years exactly because I realized how much good I could do for the world with a computer.

@quchen
quchen / trolling_haskell
Last active November 12, 2024 00:10
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@scotthmurray
scotthmurray / links.md
Last active December 15, 2015 05:09 — forked from anonymous/links.md
@run4flat
run4flat / Prima.pm
Last active December 14, 2015 20:29
First cut at PDL::Demos::Prima
use strict;
use warnings;
############################################################################
package PDL::Demos::Prima;
############################################################################
# It's a shame that PDL::Demos::Routines is in a file called
# PDL::Demos::Screen. Oh well.
use PDL::Demos::Screen;
@jddurand
jddurand / c2ast.pl
Last active March 20, 2016 07:24
C to AST using Marpa::R2. Update to update version of Marpa -;
#!env perl
# Execute this script with no parameter to get the online help
use strict;
use diagnostics;
use Marpa::R2;
use File::Slurp;
use Data::Dumper;
use POSIX;
@jeffreykegler
jeffreykegler / show_comments.pl
Last active September 20, 2016 04:24
A script to illustrate the parsing of C-style comments with Marpa's Scanless interface. It reads a file on standard input and prints the comments to STDOUT.
#!perl
# Copyright 2013 Jeffrey Kegler
# This file is part of Marpa::R2. Marpa::R2 is free software: you can
# redistribute it and/or modify it under the terms of the GNU Lesser
# General Public License as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later version.
#
# Marpa::R2 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@stared
stared / Hacking Science - invitation note.md
Last active December 11, 2015 03:49
Let's make science more open, more bottom-up, with easier collaboration; in the vein of open source projects.

Hi,

we'd like to invite you to the "Hacking Science" project - creating a community of people interested in (and wanting to contribute to) open science, bottom-up scientific initiatives, new ways of collaborating and sharing knowledge etc. Read below for main idea and how you can get involved.

Academia today has many downsides. Its conservatism and rigid structure often stifle creativity; usually, not much space is left for bottom-up ideas e.g. in the spirit of "open source software" community. We want to focus on creating

@kana
kana / realtime.diff
Created December 4, 2012 09:58
Realtime keystroke recording for Vim
--- src/main.c~ 2012-10-23 12:35:34.000000000 +0900
+++ src/main.c 2012-12-04 18:42:25.000000000 +0900
@@ -2315,6 +2315,7 @@
mch_errmsg("\"\n");
mch_exit(2);
}
+ setvbuf(scriptout, NULL, _IONBF, 0);
break;
#ifdef FEAT_GUI_W32
@tsibley
tsibley / Nopaste.pm
Created November 14, 2012 07:58
App::Nopaste upload plugin for Shutter
#!/usr/bin/env perl
# Copyright (C) 2012 Thomas Sibley <[email protected]>
package Nopaste;
use strict;
use warnings;
use utf8;
use lib ($ENV{'SHUTTER_ROOT'} || "/usr")."/share/shutter/resources/modules";
@evandrix
evandrix / README.md
Created September 11, 2012 00:06
Headless web browsers

Here are a list of headless browsers that I know about:

  • [HtmlUnit][1] - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
  • [Ghost][2] - Python only. WebKit-based. Full JavaScript support. Open source.
  • [Twill][3] - Python/command line. Custom browser engine. No JavaScript. Open source.
  • [PhantomJS][4] - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
  • [Awesomium][5] - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
  • [SimpleBrowser][6] - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
  • [ZombieJS][7] - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
  • [EnvJS][8] - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.