Skip to content

Instantly share code, notes, and snippets.

View xylifyx2's full-sized avatar

Erik Martino Hansen xylifyx2

View GitHub Profile
@xylifyx2
xylifyx2 / angular-material-muppet-app.markdown
Created November 22, 2017 11:49
Angular Material Muppet App

Angular Material Muppet App

The goal of this app is to show basic Angular.js Material Design components in action together. It can also be used as a starting point if you're looking to try things out.

A Pen by Marcy Sutton on CodePen.

License.

/**
* Copyright © 2016, QIAGEN Aarhus A/S. All rights reserved.
*/
package com.qiagen.sky.buildutil;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
/**
/**
* Copyright © 2016, QIAGEN Aarhus A/S. All rights reserved.
*/
package com.qiagen.sky.executor.dummy;
import javax.xml.bind.DatatypeConverter;
/**
* FIXME
*/

Changing your SVN repository address in a git-svn setup

This gist is extracted from wayback machine and is a blogpost by winterstream Submitted by winterstream on Fri, 07/18/2008 - 17:25

I use git-svn to interoperate with out Subversion repository at Sourceforge. I did the original checkout via HTTP and continued working like this until Sourceforge's recent site-wide SVN upgrade (from version 1.3 to 1.5). After the upgrade, I could no longer do Subversion commits (that is, git svn dcommit failed).

I had two options; I could:

#!/bin/bash
echo "Starting update: `date`"
rm -f svnupdate.* stderr.txt stdout.txt
ls -d1 */.svn/.. 2>/dev/null | split -l40 - svnupdate.
echo "`cat svnupdate.* 2>/dev/null | wc -l` projects updated in `ls -1 svnupdate.* 2>/dev/null | wc -l` parallel processes"
for f in svnupdate.*
do svn update `cat $f` 2>>stderr.txt 1>>stdout.txt &
done 2>/dev/null
wait
@xylifyx2
xylifyx2 / Juliasm.shader
Last active August 29, 2015 14:01
Juliasm
const int max_iterations = 255;
vec2 complex_square( vec2 v ) {
return vec2(
v.x * v.x - v.y * v.y,
v.x * v.y * 2.0
);
}
@xylifyx2
xylifyx2 / killparent.c
Last active July 7, 2016 08:26
Use in -XX:OnOutOfMemoryError="killparent"
#include <stdio.h>
#include <unistd.h>
int main()
{
printf ("kill -9 <parent>\n");
kill (getppid(), 9);
}