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
{ | |
"$id": "http://catalog.works/schemas/2022022.json", | |
"type": "object", | |
"title": "catalog-20220222", | |
"description": "This schema defined version 20220222 of the Catalog Metadata Schema", | |
"required": [ | |
"version", | |
"title", | |
"artist", | |
"duration", |
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
pragma solidity ^0.5.0; | |
// SafeMath library | |
contract SafeMath { | |
function safeAdd(uint a, uint b) public pure returns (uint c) { | |
c = a + b; | |
require(c >= a); | |
} |
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
pragma solidity ^0.4.23; | |
// based on https://github.com/OpenZeppelin/openzeppelin-solidity/tree/v1.10.0 | |
/** | |
* @title SafeMath | |
* @dev Math operations with safety checks that throw on error | |
*/ | |
library SafeMath { | |
/** |
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
#include <cassert> | |
#include <iostream> | |
using namespace std; | |
template <class T> | |
void LL<T>::delete_after(iterator& position) { | |
assert (position.link() -> next != NULL); | |
node* tempptr = position.link(); |
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
Running tests for sequence Class with a linked sequence | |
START OF TEST 4: | |
Testing the copy constructor (2 points). | |
Copy constructor test: for an empty sequence. | |
COPIED SEQUENCE: SIZE: 0 | |
ATTACH COND 1 | |
SEQUENCE: 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
class ListComment extends Component { | |
constructor(props){ | |
super(props); | |
this.state = { | |
// prop is an init value, legal baby | |
commentId: this.props.comment.id, | |
}; | |
} | |
// handle time precision |
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 React, { | |
Linking, | |
Platform, | |
ActionSheetIOS, | |
Dimensions, | |
View, | |
Text, | |
Navigator, | |
Component, | |
ListView, |
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 React, { | |
Linking, | |
Platform, | |
ActionSheetIOS, | |
Dimensions, | |
View, | |
Text, | |
Navigator, | |
Component, | |
ListView, |
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
if(Meteor.isServer){ | |
Meteor.methods({ | |
sendEmail:function(subForm){ | |
var sparky = new SparkPost(process.env.SPARKPOST_AUTHKEY); | |
sparky.transmissions.send({ | |
transmissionBody: { | |
content: { | |
from: '[email protected]', // take in users email for from | |
subject: subForm.email_val +' contacted you!', |
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
onSubmit(e){ | |
// grab form elements using jquery... i think there's a better way for this. | |
e.preventDefault(); | |
var element = $(e.target); | |
var firstName = element.find("#firstName").val(); | |
var lastName = element.find("#lastName").val(); | |
var emailVal = element.find("#emailVal").val(); | |
var companyVal = element.find("#companyVal").val(); |
NewerOlder