Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo "alias quit='rm -rf ~/.sfdx'" >> ~/.bash_profile;
source ~/.bash_profile;
quit;
clear;
@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 / 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 / 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
@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 / build.gradle
Created February 24, 2013 16:52
sfl4j logging with Groovy using Gradle to manage dependencies (build.gradle) See http://vazexqi.github.com/posts/2013/02/24/groovy-sfl4j.html
apply plugin: 'groovy'
repositories {
mavenCentral()
// For newer/beta versions of Groovy
@vazexqi
vazexqi / .tmux.conf
Created February 20, 2013 06:35
My .tmux.conf file.
# .tmux.conf file inspired from Pragmatic Tmux
# http://pragprog.com/book/bhtmux/tmux
# Default to zsh with support for Mac OS X clipboard
set -g default-command "reattach-to-user-namespace -l /bin/zsh"
# https://wiki.archlinux.org/index.php/Tmux
# Set more scrollback history
# START:scrollback
set -g history-limit 10000
@vazexqi
vazexqi / FileFormatCheckerTest.groovy
Created February 6, 2013 21:33
This file shows the types of checks that we perform and the types of error messages that we can report.
package edu.illinois.vlsicad.tests
import edu.illinois.vlsicad.core.FileFormatChecker
import edu.illinois.vlsicad.core.URPException
class FileFormatCheckerTest extends GroovyTestCase {
void testValidFile() {
// Should not have any exceptions thrown
FileFormatChecker checker = new FileFormatChecker(file: new File("test3.cubes"))
checker.checkFileFormat()
PROGRAM SUBDEM
REAL A,B,C,SUM,SUMSQ
CALL INPUT( + A,B,C)
CALL CALC(A,B,C,SUM,SUMSQ)
CALL OUTPUT(SUM,SUMSQ)
END