Skip to content

Instantly share code, notes, and snippets.

View neanias's full-sized avatar

William Mathewson neanias

View GitHub Profile
➜ yukibot git:(master) cabal install --only-dependencies
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: yukibot-0.0.0.1 (user goal)
next goal: base (dependency of yukibot-0.0.0.1)
rejecting: base-4.5.0.0/installed-40b... (conflict: yukibot => base>=4.7 &&
<5)
rejecting: base-4.7.0.2, 4.7.0.1, 4.7.0.0, 4.6.0.1, 4.6.0.0, 4.5.1.0, 4.5.0.0,
4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0, 4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0,
4.0.0.0, 3.0.3.2, 3.0.3.1 (global constraint requires installed instance)

Keybase proof

I hereby claim:

  • I am neanias on github.
  • I am neanias (https://keybase.io/neanias) on keybase.
  • I have a public key whose fingerprint is F65D 1E77 2621 604C 5F2E 7C82 F231 9A15 7566 3EB8

To claim this, I am signing this object:

[{
"modid": "LetsModReboot",
"name": "Let's Mod Reboot",
"description": "Learning to mod Minecraft using Pahimar's guide",
"version": "1.0",
"mcversion": "1.7.10",
"url": "https://github.com/neanias/LetsMod",
"updateUrl": "",
"authorList": ["neanias"],
"credits": "",
@neanias
neanias / gist:d53e585b27ebc29b5afd
Last active September 17, 2015 15:44
IRC post
Hey, peeps!
As I mentioned in the initial lecture for the Freshers, we have an (well, many) IRC chatroom amongst other cool stuff! IRC is an old school communication platform where many of the best programmers still hang out, us included of course. I'm neanias on IRC. Here are some links:
IRC: imaginarynet#compsoc (There's also freenode#compsoc-uk)
http://imaginarynet.uk/
Slack: (This is restricted to .ed.ac.uk email addresses.)
https://compsoc.slack.com
int n;
int **array;
n = ...;
int i, j;
array = (int **) malloc(n*sizeof(int *));
// iterate over rows
for (i = 0; i < n; i++) {
array[i] = (int *) malloc(n*sizeof(int));
for (j = 0; j < i; j++) {
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int is_palindrome(char* word)
{
int length = strlen(word);
for (int i = 0; i < length; ++i) {
for (int j = (length - 1); j > i; --j) {
! Undefined control sequence.
\MT@clist@function #1->\define@key
{MTC}{#1}[]{\edef \@tempb {\@nameuse {MT@...
l.1320 }
Joe Root, who art in heaven,
Innuendo be thy name,
Thy rootometer come,
Thy will get scores in tests,
In ODIs and twenty20.
@neanias
neanias / main.py
Last active November 3, 2016 22:26
AT Labs Backend in Python
from flask import Flask, request, Response
from twilio.rest import TwilioRestClient
from twilio import twiml
app = Flask(__name__)
account = 'Insert SID here'
token = 'Auth token'
client = TwilioRestClient(account, token)
@neanias
neanias / Gemfile
Last active November 3, 2016 22:27
AT Labs Backend
source 'https://rubygems.org'
gem 'sinatra'
gem 'twilio-ruby'
gem 'thin'