I hereby claim:
- I am cbranch101 on github.
- I am cbranch101 (https://keybase.io/cbranch101) on keybase.
- I have a public key ASDEBZa0lBkBzryYrjQBW-Sg6ICXiLJdiKoi6aBc3S2_rgo
To claim this, I am signing this object:
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
// Since the custom ranges are based exclusively on course score, I don't think these will need to change at all | |
// but if we're moving over to server calculated flags it probably makes sense to do it across the board | |
const students = [ | |
... | |
{ | |
id: 1, | |
flags: [ | |
{ | |
// this is just the field that the client uses to calculate which icon should show next to the flag |
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
const CollectionsTable = ({ myUsername, collections, pushModal, sortBy = 'title', sortOrder = 'ASC' }) => { | |
const rowFactory = (row, { Row, Cell }) => { | |
let deleteAction | |
if (row.creator.username === myUsername) { | |
deleteAction=() => pushModal('confirm-delete-collection', { idToDelete: row.id }) | |
} | |
return ( | |
<Row key={row.id}> | |
<Cell title="Name" width="half"> |
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
import Requirement from 'requirement-saga' | |
import { students as entitySchema } from '../schemas' | |
import { fetch as apiMethod } from '../resources/students' | |
import * as selectors from '../selectors/students' | |
export default new Requirement({ | |
name: 'current_students', | |
parseResponse: (response) => { | |
return { | |
data: response.data, | |
meta: { |
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
{ | |
TOC: [ | |
{ | |
name: "Title Page", | |
page: 0, | |
sections: [ ] | |
}, | |
{ | |
name: "Page 17", | |
page: 1, |
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
$.get(API_URL + '/posts', {limit : limit, offset : offset, sort_by : sortBy, sort_order : sortOrder, include_headers : includeHeaders}, function(data) { | |
$('#post-table tbody').empty(); | |
jsonData = JSON.parse(data); | |
var tableData = jsonData.table_data; | |
if($('#post-table thead').is(':empty')) { | |
window.headers = tableData.headers; | |
buildHeaders(window.headers); | |
} | |
var rows = tableData.rows; | |
buildRows(rows, window.headers); |
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
getFbPages: function() { | |
console.log('i am working'); | |
var that = this; | |
FB.api('/me/accounts', function(response) { | |
return response; | |
}); | |
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
function loadImage(img:String):void { | |
securityArray = img.split("/"); | |
securityPath = securityArray[0] + "//" + securityArray[2] + "/crossdomain.xml"; | |
Security.loadPolicyFile(securityPath); | |
var imageLoader:Loader = new Loader(); | |
//imageLoader.holder = "test"; | |
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); |