Skip to content

Instantly share code, notes, and snippets.

Jane Philipps janephilipps

Block or report user

Report or block janephilipps

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View base-feed-of-pins-resource-method-check
// 1) Go to https://statsboard.pinadmin.com/d
// 2) Click on Build => Dashboard
// 3) Execute the code below (feel free to update the methods)
const methodsToCheck = [
"get_field_set",
"get_field_set_key",
"get"
];
const generateStats = methods => `${methods
View base-feed-resource-check-methods
// 1) Go to https://statsboard.pinadmin.com/d
// 2) Click on Build => Dashboard
// 3) Execute the code below (feel free to update the methods)
const methodsToCheck = [
"get",
"_get_url",
"_update_data",
"_get_prepend_items",
];
@janephilipps
janephilipps / pin-resource-check-methods
Last active Feb 6, 2019
Check the method calls for RelatedPinFeedResource in ngapp
View pin-resource-check-methods
// 1) Go to https://statsboard.pinadmin.com/d
// 2) Click on Build => Dashboard
// 3) Execute the code below (feel free to update the methods)
const methodsToCheck = [
"get_field_set",
"_get_pin_redirect_url",
"_format_redirect_response",
"_determine_unauth_pin_redirect",
"_auth_plp_gating",
"_amp_story_pin_exp",
@janephilipps
janephilipps / related-pin-feed-resource-check-methods.js
Last active Feb 1, 2019
Check the method calls for RelatedPinFeedResource in ngapp
View related-pin-feed-resource-check-methods.js
View readme.md
View sample.jsx
render() {
let rows = this.state.board.map((rowContent, id) => (
  <Row
  id={id}
  rowContent={rowContent}
  onClick={this._handleClick.bind(this)}
  />
  ));
View sample.jsx
render() {
let rows = this.state.board.map ((rowContent,id) => (
 <Row
 id={id} rowContent={rowContent}
 onClick={this._handleClick.bind(this)}
 />
 ));
let message = this._getMessage(this.state);
return (
 <div>
View sample.js
/* This function takes an integer and returns a
 * string representation with commas for every group of 3 digits.
 * See this StackOverflow post for an explanation:
 * https://goo.gl/gfe1H7
 */
var addCommas = function(number) {
return number.toString().replace(/\B(?=(?:\d{3})+(?!\d))/g, “,”);
}
View sample.css
/* ROW STYLES */
.row {
display: block;
}
.row:not(first-child) {
margin-top: -4px; /* display: inline-block fix */
}
.row:nth-child(1.square {
View sample.html
<div class=”container”>
<div class=”row”>
  <div>
  <div>
  <p>
Look at all of these nested divs…
</p>
  <p>
There are so many that I can’t keep track!
</p>
You can’t perform that action at this time.