Skip to content

Instantly share code, notes, and snippets.

@vazexqi
vazexqi / MyExample.groovy
Created February 24, 2013 16:58
sfl4j logging with Groovy using Gradle to manage dependencies (MyExample.groovy) See http://vazexqi.github.com/posts/2013/02/24/groovy-sfl4j.html
import groovy.util.logging.Slf4j
@Slf4j
class MyExample {
@vazexqi
vazexqi / solver.html
Last active June 30, 2016 14:33
Simple Linear System Solver
<!--
Code by the Illinois VLSI CAD teaching staff.
Released under the University of Illinois/NCSA Open Source License
-->
<div class="alert alert-info">
<p>
Fill in the matrix A and the vector b and click "Solve!".
</p>
</div>
@vazexqi
vazexqi / visualize.html
Last active June 30, 2016 14:33
Placer Result Visualization
<!--
Modified and derived from
<http://www.html5rocks.com/en/tutorials/file/dndfiles/#toc-selecting-files-dnd>
<http://bl.ocks.org/mbostock/4063663>
Code by the Illinois VLSI CAD teaching staff.
Released under the University of Illinois/NCSA Open Source License
-->
<html xmlns="http://www.w3.org/1999/xhtml">
@vazexqi
vazexqi / router.html
Last active June 30, 2016 14:34
Router Result Visualization. See it in action <https://www.youtube.com/watch?v=4m0V6fpwROA>
<!--
Modified and derived from
<http://www.html5rocks.com/en/tutorials/file/dndfiles/#toc-selecting-files-dnd>
<http://bl.ocks.org/mbostock/4063663>
Uses $.contextMenu jQuery plug-in from <https://github.com/medialize/jQuery-contextMenu>
It's dual licensed so we are choosing its MIT License option.
Code by the Illinois VLSI CAD teaching staff.
Released under the University of Illinois/NCSA Open Source License
@vazexqi
vazexqi / logback.xml
Created February 24, 2013 17:01
sfl4j logging with Groovy using Gradle to manage dependencies (logback.xml) See http://vazexqi.github.com/posts/2013/02/24/groovy-sfl4j.html
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %ms
#!/bin/bash
echo "alias quit='rm -rf ~/.sfdx'" >> ~/.bash_profile;
source ~/.bash_profile;
quit;
clear;
@vazexqi
vazexqi / pre-commit
Created March 23, 2011 06:09
Checks for non-ASCII characters or files that are too long
#!/bin/sh
#
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi