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
<h2>Glossary of Vocabulary</h2> | |
<h3>Programming</h3> | |
<div style="background: #dfd;"> | |
<h5>Compiler</h5> | |
<h5>High-Level Language</h5> | |
<h5>IDE</h5> | |
<h5>Interpreter</h5> | |
<h5>Low-Level Language</h5> | |
<h5>Source Code</h5> | |
<h5>Text Editor</h5> |
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
<html><body><pre> | |
<?php | |
require_once('.ignore.canvas-authentication.inc.php'); | |
require_once('Pest.php'); | |
/** | |
* Generate the Canvas API authorization header | |
**/ | |
function buildCanvasAuthorizationHeader() { |
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
/** | |
* A brief (but complete) high-level description of the function and purpose | |
* of the class, included as Javadoc documentation for each class. | |
* | |
* @author Seth Battis | |
* | |
*/ | |
public class MyNiftyProgram { | |
/** |
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
// https://www.facebook.com/david.salmanson.9/posts/10203810541089037 | |
package net.battis.IndianRunMusicalChairs; | |
import java.util.*; | |
public class IndianRunMusicalChairs { | |
private ArrayList<Integer> players; | |
private boolean justSatDown = true; |
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
#!/bin/bash | |
logfile=/var/www/git.log | |
exec >> $logfile 2>&1 | |
date +"%Y-%m-%d %r" | |
cd /var/www | |
git fetch -q origin | |
git merge origin/master | |
git submodule update --recursive | |
git add -A . | |
git commit -q -m 'Auto Backup' |
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 | |
// MySQL schema | |
/* | |
CREATE TABLE `test` ( | |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`text` text, | |
`blob` blob, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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
###################################################################### | |
# Minimal Eclipse Mars JDT | |
# | |
# https://gist.github.com/battis/f9adaebfab50c0d5bcb0 | |
# | |
# Capture projects and user library configuration, but nothing else | |
# ignore Eclipse metadata | |
.metadata/* | |
!.metadata/.plugins |
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
license: gpl-3.0 |
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
/* imagine we want to remove course ID 863 from the calendar list */ | |
var id = 863; | |
/* look to see if that calendar is currently enabled */ | |
if ($('#context-list li[data-context="course_' + id + '"] checked').length != 0) { | |
/* click toggle box to hide (a persistent setting -- should only happen once) */ | |
$('#context-list li[data-context="course_' + id + '"] .context-list-toggle-box').click(); | |
} | |
/* hide calendar so that it can't be re-enabled -- and won't count against limit of 10 */ |