Skip to content

Instantly share code, notes, and snippets.

View lucidBrot's full-sized avatar

Eric Mink lucidBrot

View GitHub Profile
def xxxx(x):
if x < 0 :
return 1
xx = 0
for xxx in range(10):
xx += xxxx(x-1-xxx)
return xx
xxxxxx = [0x370, 0x3aa, 0x1d3, 0x1f8, 0xaa, 0x244, 0x324, 0x2ad, 0x226, 0x224, 0x3dc, 0x2a9, 0x96, 0x13b, 0x9b, 0x251, 0x1e1, 0x7b, 0x317, 0x14f, 0x239, 0x29d, 0x18e, 0xac, 0x18e, 0x33a, 0x35, 0x45, 0x8b, 0xc0, 0x38e, 0x9e, 0x10d, 0x38c, 0x3cd, 0x193, 0x190, 0x16e, 0x35a, 0x5f, 0x66, 0x18d, 0x38, 0x3ce, 0x3c8, 0x239, 0xb4, 0x3b6, 0x3fb, 0x18d, 0xa9, 0x3fe, 0x32, 0x3a2, 0x25c, 0x90, 0x213, 0x3fb, 0x18b, 0x84, 0x2ba, 0x3e7, 0x32f, 0x327, 0x28f, 0x89, 0x20f, 0x10, 0x29, 0x35f, 0xbd, 0x32a, 0x2af, 0x1d5, 0x2d5, 0xd2, 0x88, 0x106, 0x3b9, 0x180, 0x240, 0x10d, 0x2c7, 0x5d, 0x1a1, 0x269, 0x185, 0x111, 0x327, 0x3c9, 0x21b, 0x4f, 0x37a, 0x233, 0x66, 0x148, 0xf5, 0x29e, 0x289, 0x284, 0x3a9, 0x122, 0x211, 0x33a, 0x17, 0xae, 0x33b, 0x1f1, 0x12f, 0x97, 0x23e, 0x11b, 0x140, 0x185, 0x2c1, 0x219, 0x1a, 0x23d, 0x35c, 0x20a, 0x309, 0x1a5, 0x189, 0x143, 0x142, 0x2dd, 0x14, 0x258, 0x2f9, 0x9b, 0x2e7, 0x396, 0x25b, 0x1ab, 0x297, 0x
package org.ygl.openrndr.demos
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.DrawPrimitive
import org.openrndr.draw.VertexElementType
import org.openrndr.draw.renderTarget
import org.openrndr.draw.shadeStyle
import org.openrndr.draw.vertexBuffer
import org.openrndr.draw.vertexFormat
package org.ygl.openrndr.demos
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.color.mix
import org.openrndr.color.rgb
import org.openrndr.draw.LineCap
import org.openrndr.draw.LineJoin
import org.openrndr.extra.compositor.compose
import org.openrndr.extra.compositor.draw
@mihaidusmanu
mihaidusmanu / COLMAP_Leonhard.md
Last active April 19, 2022 15:44
COLMAP on Leonhard

Compiling COLMAP on Leonhard

This is a short tutorial for compiling COLMAP on Leonhard with GCC 6.3.0. Qt installation is quite large so COLMAP cannot be compiled in the home directories.

Modules and Paths

Create a file called colmap_startup.sh in your home directory containing the following:

export DATA=/cluster/project/infk/cvg/$USER
@RonnyO
RonnyO / jquery.qDefer.min.js
Created April 15, 2012 11:24
Simply mimic the 'defer' attribute for inline scripts across all browsers (jQuery helper)
// http://bit.ly/qDefer
$(function(){$('script[type="text/javascript/defer"]').each(function(){$(this).clone().attr('type','').insertAfter(this)})});
@Potherca
Potherca / README.md
Last active March 28, 2023 04:29
Converting a webm file to GIF (using FFmpeg and Gifsicle)

Introduction

Sometimes I want to make a screencapture of a websites behaviour.

In Chrome, I am quite happy doing this with the [Awesome Screenshot: Screen Video Recorder][1] extension.

Besides screenshots, the extension offers the ability to make a recording. (Limited to 30 seconds in the free version).

The recording can be uploaded to Youtube or Google Drive. It can also be downloaded as WebM file.

@sharmaeklavya2
sharmaeklavya2 / lolcode_tutorial.md
Last active May 19, 2023 19:38
LOLCODE tutorial

LOLCODE

LOLCODE is an esoteric programming language inspired by lolcat memes on the internet. The language was created in 2007 by Adam Lindsay, researcher at Lancaster University's Computing Department.

Here I have explained basics of LOLCODE with complete examples. However, you may have questions even after reading them because I have not included all details. For an exhaustive reference, read the official documentation.

Hello World

HAI 1.2
BTW This is the famous 'Hello World' program
@serycjon
serycjon / filter_events.py
Created September 20, 2018 09:33
Filter tensorflow event files
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
import argparse
import tqdm
import tensorflow as tf
@dschep
dschep / raspbian-python3.6.rst
Last active October 24, 2023 14:57 — forked from BMeu/raspbian-python3.5.rst
Installing Python 3.6 on Raspbian

Installing Python 3.6 on Raspbian

As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.

  1. Install the required build-tools (some might already be installed on your system).

@skanev
skanev / README.md
Last active October 26, 2023 12:02 — forked from valo/README.md
Hacky git diff syntax highlighting for the full code

Hacky syntax highlighting in git diff

Normally git diff would color additions green and deletions red. This is cool, but it would be even cooler if it adds syntax highlighting to those lines. This is a git pager that does so.

It parses the diff output and picks up the SHAs of files with additions and deletions. It uses [CodeRay][coderay] to highlight each file and then it extracts the lines that are shown in the diff. It then uses [term/ansicolor][color] to make a gradient from the CodeRay color and the diff color (red for deletion, green for addition) and uses it to replace the original.

I tried using rugged instead of shelling out to git show – it was faster overall, but it did incur a noticeable start up time.

Check out the image below for a demo.