Skip to content

Instantly share code, notes, and snippets.

View leto's full-sized avatar
🐉
The Blocks Must Flow

Duke Leto leto

🐉
The Blocks Must Flow
View GitHub Profile
@lolgear
lolgear / gist_parrot_gsoc_2013.md
Last active December 17, 2015 13:09
GNU Scientific Library (GSL) bindings for Parrot

Abstract

This project can be thought of as porting a subset Math::GSL to Parrot.

Details

There are many GSL subsystems, so this project should focus on binding to Special Function, Random Distributions and Cumulative Distribution Functions (CDFs), which have the simplest function signatures. Deliverables will be the implementation, examples, docs and tests.

Schedule

May 27- June 16:

This period I will spent on read documentation to parrot, also see examples of GSL library.

"Flang" - a frontend for the Fortran programming language, a 2013 Google summer of code(GSoC) proposal for the LLVM project.
Personal Details:
Name: Aleksei(Alex) Lorenz.
University: National university of Ireland, Galway
Course/Program: Bachelors in Computer Science and Information Technology
Contact email: [email protected]
Contact phone number: (+353) 870544409
@leto
leto / gist:5306243
Created April 3, 2013 23:00
VLC For Android ARMv7 nightly APK
http://nightlies.videolan.org/build/armv7-android/VLC-debug-20130331-0117.apk
@damianavila
damianavila / remove_output.py
Created April 3, 2013 22:05
Remove output from IPython notebook from the command line (dev version 1.0)
"""
Usage: python remove_output.py notebook.ipynb [ > without_output.ipynb ]
Modified from remove_output by Minrk
"""
import sys
import io
import os
from IPython.nbformat.current import read, write
@yuvipanda
yuvipanda / suchabot.py
Last active December 4, 2024 08:01
Move pull requests from GitHub to Gerrit
import os
import sys
import github
import sh
import jinja2
import yaml
import re
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 28, 2025 00:02
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

BuiltinFunctions::ProhibitBooleanGrep
BuiltinFunctions::ProhibitStringyEval
BuiltinFunctions::ProhibitStringySplit
BuiltinFunctions::ProhibitUniversalCan
BuiltinFunctions::ProhibitUniversalIsa
ClassHierarchies::ProhibitExplicitISA
ControlStructures::ProhibitMutatingListFunctions
ControlStructures::ProhibitUnreachableCode
ErrorHandling::RequireCarping
InputOutput::ProhibitBarewordFileHandles
@pstuifzand
pstuifzand / MarpaX-JSON.pm
Last active December 10, 2015 14:28
A JSON parser in Marpa.
package MarpaX::JSON;
use strict;
use Marpa::R2 2.039_000;
sub new {
my ($class) = @_;
my $self = bless {}, $class;
$self->{grammar} = Marpa::R2::Scanless::G->new(
@jeffreykegler
jeffreykegler / gist:4440418
Created January 3, 2013 03:09
Gist for blog post announcing Marpa's Scanless interface
#!/usr/bin/perl
# Copyright 2012 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
@danaj
danaj / lehmer.c
Last active November 29, 2021 17:09
Prime counting utility using primesieve (http://code.google.com/p/primesieve/). Includes counting via sieve, Legendre, Meissel, and Lehmer methods. Part of the Math::Prime::Util Perl module (https://github.com/danaj/Math-Prime-Util). All code is in C, but primesieve makes a C++ library, hence the C++ compilation.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
/* Below this size, just sieve. */
#define SIEVE_LIMIT 1000000
/*****************************************************************************
*