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
Student # | Grade 1 | Grade 2 | Grade 3 | Grade 4 | Grade 5 | Grade 6 | |
---|---|---|---|---|---|---|---|
222301 | 86 | 76 | 70 | 86 | 90 | 79 | |
222302 | 85 | 90 | 81 | 91 | 90 | 95 | |
222303 | 93 | 80 | 86 | 80 | 81 | 85 | |
222304 | 80 | 93 | 77 | 93 | 82 | 84 | |
222305 | 92 | 84 | 86 | 86 | 88 | 75 | |
222306 | 69 | 86 | 85 | 80 | 86 | 98 | |
222307 | 102 | 99 | 86 | 99 | 88 | 94 | |
222308 | 73 | 74 | 95 | 88 | 70 | 87 | |
222309 | 80 | 78 | 85 | 82 | 79 | 82 |
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 makeTable(tableName, inputRows) { | |
let rows = inputRows.split(/\r?\n/); | |
// prepare table rows | |
let results = rows.map((row, count) => { | |
return { | |
text: row.trim(), | |
type: CONST.TABLE_RESULT_TYPES.TEXT, | |
weight: 1, | |
range: [count + 1, count + 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
This is completely new text, right? |
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 | |
function om_exporter_drush_command() { | |
$items['export-newest'] = array( | |
'description' => 'Export Newest Content to CSV', | |
'aliases' => ['ex-new'], | |
'callback' => 'om_export_newest', | |
'arguments' => [ | |
'date' => '', | |
] |
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 | |
/** | |
* Updates remote image tags to work locally. | |
* | |
* @param $node | |
*/ | |
function _rewrite_images($body) | |
{ | |
// quick test before we commit to DOM processing | |
// must have images from our old |
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 | |
/** | |
* Implements hook_menu() | |
*/ | |
function node_orphaned_menu() { | |
$items['admin/content/node-orphaned'] = array( | |
'page callback' => 'node_orphaned_list', | |
'title' => 'Orphaned Pages', | |
'access arguments' => 'administer nodes', | |
'type' => MENU_LOCAL_TASK, |
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 | |
/* | |
* World Cup Draw Example. | |
* | |
* Using Array functions & SPL Iterators to simulate (simplified) World Cup draws. | |
* | |
* @author Oscar Merida <oscar@phparch.com> | |
*/ | |
// teams organized by pot, 8 in each. |
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
# create temp table | |
CREATE TEMPORARY TABLE link_dupes ( | |
`id` int(11) unsigned NOT NULL, | |
`user_id` int(11) unsigned NOT NULL, | |
`link` varchar(1000) NOT NULL, | |
`link_unique` varchar(1000) NOT NULL | |
); | |
# find rows with duplicate link fields, into temp table | |
# add a hash to the url so that it still works |
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
// something we can click | |
$button = $('.some-button'); | |
// the container we want to show and hide | |
$dialog = $('#dialog'); | |
// bind click to open & close | |
$button.click(function(event) { | |
if ($dialog.is(':visible')) { | |
// could use another effect or do any shutdown work here |