Skip to content

Instantly share code, notes, and snippets.

@cbranch101
cbranch101 / README.md
Created May 3, 2022 19:32
react-core

‎‎​

Keybase proof

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:

// 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
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">
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: {
{
TOC: [
{
name: "Title Page",
page: 0,
sections: [ ]
},
{
name: "Page 17",
page: 1,
$.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);
getFbPages: function() {
console.log('i am working');
var that = this;
FB.api('/me/accounts', function(response) {
return response;
});
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);