Skip to content

Instantly share code, notes, and snippets.

View mtheoryx's full-sized avatar
🐳
Making happy little clouds

David Poindexter mtheoryx

🐳
Making happy little clouds
View GitHub Profile
@mtheoryx
mtheoryx / gist:8739060
Created January 31, 2014 18:16
AFT code and selector example
<tr class="odd" id="ENGL201">
<td class="ksap-text-nowrap sortable">ENGL201</td>
<td class="sortable details_link"><a href="inquiry?methodToCall=start&amp;viewId=CourseDetails-InquiryView&amp;courseId=18f8deda-26ce-4cb0-a66e-631f690f1650" target="_self" title="Inventing Western Literature: Ancient and Medieval Traditions" class="ksap-text-ellipsis">Inventing Western Literature: Ancient and Medieval Traditions</a></td>
<td class="">3.0 Credits</td>
<td class="ksap-data-list">
<dl>
<dd class="scheduled">
<dl>
<dd class="SP">SP 14</dd>
</dl>
@mtheoryx
mtheoryx / gist:8740694
Created January 31, 2014 19:00
Course details: Course description target
<div id="ENGL201_description" class="uif-messageField uif-boxLayoutHorizontalItem">
<span id="u100084_span" class="uif-message" data-parent="ENGL201_description">
Wide range of texts, genres, and themes from ancient and medieval Western traditions. Study of cultural, historical, and artistic forces shaping traditions, and the influence and relevance of those traditions to life in twenty-first century. </span>
</div>
-----
jQuery('#ENGL201_description span.uif-message');
@mtheoryx
mtheoryx / gist:8744572
Created January 31, 2014 22:29
Course note icon AFT target
<img id="kuali-atp-2014Summer1_planned_ENGL201_courseNote" src="../ks-ap/images/iconInfo.png" alt="" class="uif-helpImage coursenote invisible uif-boxLayoutHorizontalItem" data-uniqueid="1a4f3ff2-288a-4461-9413-4225c7214f94" data-coursecode="ENGL201" data-termid="kuali.atp.2014Summer1" data-learningplanid="testPlan1" data-planitemid="36badb90-5dd5-4d65-94ff-f3afac4cdebc" data-courseid="18f8deda-26ce-4cb0-a66e-631f690f1650">
----
jQuery('#2014Summer1_planned_ENGL201_courseNote')
@mtheoryx
mtheoryx / pagination_decision.js
Created February 5, 2014 17:12
JS for conditional pagination
var stringTest = "Showing 1 to 4 of 10 entries";
stringTest = stringTest
.replace('Showing', '')
.replace('to ', '')
.replace('of ', '')
.replace('entries', '')
.replace(" ", "")
.trim();
try {
scheduledTerm = KsapFrameworkServiceLocator
.getAtpService()
.getAtp(scheduledTermId,
KsapFrameworkServiceLocator.getContext()
.getContextInfo()).getName();
scheduledTermCode = KsapFrameworkServiceLocator
.getAtpService()
.getAtp(scheduledTermId,
KsapFrameworkServiceLocator.getContext()
<#if ${ConfigProperties['rice.krad.dev.mode']} >
</#if>
echo "export M3_HOME='/usr/local/Cellar/maven30/3.0.5/libexec'" >> ~/.profile && echo "export M2_HOME='/usr/local/Cellar/maven30/3.0.5/libexec'" >> ~/.profile && echo "export PATH=$M3_HOME/bin:$PATH" >> ~/.profile
[3/21/14, 12:39:28 PM] Amanda Ford: [DEBUG] Writing resolution tracking file /Users/amandaford/.m2/repository/org/apache/ant/ant/1.8.2/ant-1.8.2.jar.lastUpdated
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Kuali Student ..................................... SUCCESS [7.702s]
[INFO] KSAP .............................................. SUCCESS [0.897s]
[INFO] KS Deployments .................................... SUCCESS [0.768s]
[INFO] KS Deployment Resources ........................... SUCCESS [6.487s]
[INFO] KS AP SQL files ................................... SUCCESS [3.245s]
[INFO] KS API ............................................ SUCCESS [0.721s]

Prerequisites and assumed conditions

  • Mac OS X 10.9.2
  • Clean install
  • Admin user (required to install Xcode cli dev tools, Virtualbox application)
  • Network connection

Installation

CLI tools Needed:

#!/usr/bin/ruby
def startup_oracle_vm
puts "Executing startup..."
system('cd $ORACLE_HOME && vagrant up')
exit!
end
startup_oracle_vm \
unless
%x(cd $ORACLE_HOME \
&& vagrant status | \