Skip to content

Instantly share code, notes, and snippets.

@christianvuerings
christianvuerings / awards.json
Created April 21, 2015 20:52
SIS Prototype Finaid
{
"terms": [
{
"startTerm": "Fall",
"startTermYear": "2014",
"endTerm": "Spring",
"endTermYear": "2015",
"totalOffered": 60000,
"totalAccepted": 43500,
"categories": [
@christianvuerings
christianvuerings / sis-advising-alpha.css
Last active August 29, 2015 14:15
SIS Project - advising appointment prototype
.uc-prototype {
color: #474747;
margin: 0;
font-family: Arial,sans-serif;
font-size: 13px;
font-weight: 400;
line-height: 1.5;
padding: 20px;
}
/* Hide Hacks */

Steps

  • Move assets to /src
  • Fix rails_admin custom stylesheets (app/assets/stylesheets/rails_admin)
  • Copy package.json
  • Copy gulpfile.js
  • Controllers
    • Copy calcentral_config_controller.rb (app/controllers/calcentral_config_controller.rb)
    • Bootstrapcontroller
  • update index method
@christianvuerings
christianvuerings / angular-rails-templates-images.markdown
Created June 16, 2014 17:30
Moving to app/assets/templates doesn't render the .erb file correctly

Before

app/views/templates/404.html.erb

<%= image_tag "glass_magnifying_200x175.jpg", :size => "200x175", :alt => "", :class => "cc-right" %>

After

@christianvuerings
christianvuerings / standups.json
Last active August 29, 2015 13:57
CalCentral stand-up times
{
"standups": {
"20140317": {
"time": "22"
},
"20140318": {
"time": "20"
},
"20140319": {
"time": "32"
@christianvuerings
christianvuerings / enable-autocomplete.js
Created January 29, 2014 18:23
Enable autocomplete
var inputs = document.querySelectorAll('input');
for (var i = 0; i < inputs.length; i++) { inputs[i].setAttribute('autocomplete', 'on') };
@christianvuerings
christianvuerings / quotes.json
Last active December 5, 2022 00:21
A list of my favourite quotes.
{
"quotes": [
{
"author": "Abraham Lincoln",
"quote": "Things may come to those who wait, but only the things left by those who hustle.",
"image": "http://upload.wikimedia.org/wikipedia/commons/1/1b/Abraham_Lincoln_November_1863.jpg"
},
{
"author": "Adam Smith",
"quote": "The great secret of education is to direct vanity to proper objects.",
@christianvuerings
christianvuerings / calcentral_image.sh
Created March 25, 2013 23:32
Search for image files in Calcentral
#!/bin/bash
FILES=app/assets/images/*.*
for f in $FILES
do
filename=`basename $f`
echo $filename
ack --ignore-dir=log --ignore-dir=.idea --nobinary $filename
#grep -Ir --exclude=".idea\*" --exclude="*.log" "$filename" ./
done
@christianvuerings
christianvuerings / campus-links-debug.js
Created March 14, 2013 22:12
CalCentral - Debug campus links
h1 img {
position:relative;
width: 200px;
-webkit-animation:spin 2.2s infinite;
}
h1 img:before{
position:absolute;
content:'';