Skip to content

Instantly share code, notes, and snippets.

View insert_quit_into_bash.sh
#!/bin/bash
echo "alias quit='rm -rf ~/.sfdx'" >> ~/.bash_profile;
source ~/.bash_profile;
quit;
clear;
@vazexqi
vazexqi / router.html
Last active Jun 30, 2016
Router Result Visualization. See it in action <https://www.youtube.com/watch?v=4m0V6fpwROA>
View router.html
<!--
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 Jun 30, 2016
Simple Linear System Solver
View solver.html
<!--
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 Jun 30, 2016
Placer Result Visualization
View visualize.html
<!--
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 Feb 24, 2013
sfl4j logging with Groovy using Gradle to manage dependencies (logback.xml) See http://vazexqi.github.com/posts/2013/02/24/groovy-sfl4j.html
View logback.xml
<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 Feb 24, 2013
sfl4j logging with Groovy using Gradle to manage dependencies (MyExample.groovy) See http://vazexqi.github.com/posts/2013/02/24/groovy-sfl4j.html
View MyExample.groovy
import groovy.util.logging.Slf4j
@Slf4j
class MyExample {
@vazexqi
vazexqi / build.gradle
Created Feb 24, 2013
sfl4j logging with Groovy using Gradle to manage dependencies (build.gradle) See http://vazexqi.github.com/posts/2013/02/24/groovy-sfl4j.html
View build.gradle
apply plugin: 'groovy'
repositories {
mavenCentral()
// For newer/beta versions of Groovy
@vazexqi
vazexqi / .tmux.conf
Created Feb 20, 2013
My .tmux.conf file.
View .tmux.conf
# .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 Feb 6, 2013
This file shows the types of checks that we perform and the types of error messages that we can report.
View FileFormatCheckerTest.groovy
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()
View main.f90
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
You can’t perform that action at this time.