This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* FPU EDIT (bkt) 1/2010 | |
* These functions are used for course sorting and for course grouping. | |
* Used in the function below (print_my_courses()). | |
*/ | |
/** | |
* This function is used to sort an array of course objects | |
* by chronological order based on the FPU naming scheme. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.fresno.samples.gwt.informerrmi.server; | |
import java.util.List; | |
import com.entrinsik.informer.core.client.data.LoadOptions; | |
import com.entrinsik.informer.core.client.data.Page; | |
import com.entrinsik.informer.core.domain.DataGroup; | |
import com.entrinsik.informer.core.domain.Order; | |
import com.entrinsik.informer.core.domain.report.Report; | |
import com.entrinsik.informer.core.domain.report.ReportExecutionRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveModel | |
class Errors | |
def full_message_per_field | |
messages_per_field = [] | |
handled_attributes = [] | |
each do |attribute, messages| | |
next if handled_attributes.include? attribute | |
messages = Array.wrap(messages) | |
next if messages.empty? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Component | |
var AnswerDisplay = React.createClass({ | |
mixins: [FluxMixin, StoreWatchMixin("answer")], | |
getStateFromFlux() { | |
var flux = this.getFlux(), | |
answerStore = flux.store("answer"); | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
## Find The Longest Palindrome In A String | |
## October 15, 2010 | |
## | |
## http://programmingpraxis.com/2010/10/15/find-the-longest-palindrome-in-a-string/ | |
## | |
## Greplin issued a programming challenge recently that required programmers | |
## to solve three problems; when completed, Greplin issued an invitation to | |
## send them a resume. The first problem required the programmer to find the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
## Find The Longest Palindrome In A String | |
## October 15, 2010 | |
## | |
## http://programmingpraxis.com/2010/10/15/find-the-longest-palindrome-in-a-string/ | |
## | |
## Greplin issued a programming challenge recently that required programmers | |
## to solve three problems; when completed, Greplin issued an invitation to | |
## send them a resume. The first problem required the programmer to find the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sinatra | |
haml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pp' | |
REGEX = /(\d+)\s+(10\/[A-Z]{1}SP-\S+).*\s+([A-Z0-9]+)/i | |
YEAR = "2010" | |
TERM = "Spring" | |
teachers = {} | |
courses = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register({ | |
name: 'moodle.domain.com', | |
url: 'http://moodle.domain.com/', | |
icon: 'http://moodle.domain.com/theme/mytheme/favicon.ico', | |
domains: [ 'moodle.domain.com' ], | |
sessionCookieNames: [ 'MoodleSession', 'MoodleSessionTest' ], | |
identifyUser: function() { | |
var site = this.httpGet('http://moodle.domain.com/user/view.php'); | |
this.userName = site.body.querySelector('div.logininfo a').text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To just pull changes from Github, forcing Git to use your local changes for any conflicts: | |
git pull --strategy=ours origin master | |
# To completely update each of your Git repositories in one command (run this inside each repository): | |
git add . && git commit -m "Updating to current working version" && git pull --strategy=ours origin master && git push origin master |