This file contains hidden or 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
| d3.csv('data/dogs.csv').then(data => { | |
| data.forEach(d => d.age = +d.age); | |
| const svg = d3.select('.playground') | |
| .append('svg') | |
| .attr('width', 600) | |
| .attr('height', 600); | |
| const circles = svg.selectAll('circle') | |
| .data(data); |
This file contains hidden or 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
| export const pageQuery = graphql` | |
| query { | |
| allWordpressWpApiMenusMenusItems { | |
| edges { | |
| node { | |
| items { | |
| title | |
| url | |
| } | |
| } |
This file contains hidden or 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
| #!/bin/sh | |
| IMG_REGXP="<img" | |
| HOME_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/imports/plugins/custom/pressed-theme/client/templates/pages/home" | |
| HOME_ANALYSIS_FILE="home_imgs.txt" | |
| MEMBERSHIP_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/imports/plugins/custom/pressed-theme/client/templates/pages/membership" | |
| MEMBERSHIP_A_FILE="membership_imgs.txt" | |
| ABOUT_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/imports/plugins/custom/pressed-theme/client/templates/pages/about" | |
| ABOUT_A_FILE="about_imgs.txt" | |
| CELERY_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/imports/plugins/custom/pressed-theme/client/templates/pages/celery-challenge" |
This file contains hidden or 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 * as cherryPieApi from "../lib/api"; | |
| const api = require("./api"); | |
| const MongoClient = require('mongodb').MongoClient; | |
| const assert = require('assert'); | |
| // Connection URL | |
| const url = 'mongodb://localhost:27017'; | |
| // Database Name | |
| const dbName = 'default'; |
This file contains hidden or 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
| Attaching to pressed_site-develop_reaction_1 | |
| [36mreaction_1 |[0m npm info it worked if it ends with ok | |
| [36mreaction_1 |[0m npm info using [email protected] | |
| [36mreaction_1 |[0m npm info using [email protected] | |
| [36mreaction_1 |[0m npm info attempt registry request try #1 at 8:48:18 AM | |
| [36mreaction_1 |[0m npm http request GET https://registry.npmjs.org/fsevents | |
| [36mreaction_1 |[0m npm http 304 https://registry.npmjs.org/fsevents | |
| [36mreaction_1 |[0m npm info lifecycle [email protected]~preinstall: [email protected] | |
| [36mreaction_1 |[0m npm info linkStuff [email protected] | |
| [36mreaction_1 |[0m npm info lifecycle [email protected]~install: [email protected] |
This file contains hidden or 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 EventEmitter () { | |
| events = {} | |
| function publish(type, payload) { | |
| callbacks = events[type] | |
| callbacks.forEach(c => { | |
| c(payload) | |
| }) | |
| } |
This file contains hidden or 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 {Node} from './node'; | |
| export class BinarySearchTree { | |
| constructor(root) { | |
| this.root = root; | |
| this.cmpFn = (l, r) => { return l - r; }; //cmp keys | |
| } | |
| get rootNode() { |
This file contains hidden or 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 from 'react'; | |
| import NavigationBar from './NavigationBar'; | |
| class App extends React.Component { | |
| render() { | |
| return ( | |
| <div className="container"> | |
| <NavigationBar/> | |
| {/*{this.props.children}*/} |
This file contains hidden or 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 axios = require('axios'); | |
| const crypto = require('crypto'); | |
| const base64encode = (str) => { return new Buffer(str).toString('base64'); }; | |
| const md5hash = (str) => { return crypto.createHash('md5').update(str).digest('hex'); }; | |
| const ACCESS_KEY = "lhOqkkDQ5YDQPeXRntUd"; | |
| const SECRET_KEY = "AVY9eev3fDZaJCZvaemk"; | |
| const getApiRequestUrl = (url) => { |
NewerOlder