Skip to content

Instantly share code, notes, and snippets.

class QueryTable extends React.Component {
state = {
order: 'asc',
sortedBy: 'meat',
query: 'chicken',
columnHeaders: ['meat', 'protein (g)', 'calories (cal)', 'carbohydrates (g)', 'fat (g)'],
rows: [
['chicken breast', '25g', '200cal', '37g', '8g'],
['fried chicken', '45g', '450cal', '21g', '16g'],
['beef stew', '20g', '250cal', '8g', '14g'],
import React, { Component } from 'react';
import TextField from '@material-ui/core/TextField';
import Grid from '@material-ui/core/Grid';
import { createOptions, createColorOptions } from '../helpers/options';
export class FootProtectorQuantity extends Component {
isFPNo = value => value.toLowerCase() === 'no';
componentDidUpdate() {
import React, { Component } from 'react';
import TextField from '@material-ui/core/TextField';
import Grid from '@material-ui/core/Grid';
import { createOptions, createColorOptions } from '../helpers/options';
export class Inputs extends Component {
render() {
const fields = ['submittedBy', 'customerCode', 'customerName',
'quantityOption', 'orderNumber', 'footProtectorItemNumber', 'pillowItemNumber',
import React, { Component } from 'react';
import XLSX from 'xlsx';
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
import { withStyles } from '@material-ui/core/styles';
import {
Inputs,
Date,
FootProtector,
Pillow,
var request = require('request')
var bunyan = require('bunyan')
var fs = require('fs')
var log = bunyan.createLogger({
name: "strange-supreme"
})
var options = {
url: `http://www.supremenewyork.com/shop/{id}.json`,
headers: {
@bytesizedpcs
bytesizedpcs / goat_order.py
Created May 30, 2017 12:38 — forked from footcarts/goat_order.py
goat_order.py
# ENTER USERNAME AND PASSWORD BELOW
# - FOOTCARTS
import requests
import json
import time
from time import sleep
goat = requests.Session()
cookies = {
'_sneakers_session': 'Ui9jZ2Y5UTJmWmdLd0w2MDllUTZmTHdSOHdQa0FHVmRMTzZZWE83S0ZDbUxQVVR6NmpueXBRekh1cXZpSXlISWJPbHA1NDgrUk5zOFRTVWd5MGVHd2p5L3gyUkI0TDFMSEFpbUVDRUlRSXVXdStGV21lUHVSRnZPWUJBZS8vRmtRTThFVUo1QWp5L2ZIWUJONXFFYk00WGhjM1lnTnlEUGx4OHZqeWVwUlhnPS0teGZzMnl2ZHZCU0FjUUdwS2QzMHoxUT09--f5b1708b355a4f830e2eeebde10bd26ebd6b4ea5',
Setup instructions:
** I WOULD HIGHLY RECOMMEND SETTING THIS UP IN A VM**
1. Install Homebrew
2. Install Python with homebrew
3. Install pip with homebrew
4. Install requests with pip
5. Install requests[security] with pip
6. If necessary, install/update OpenSSL with homebrew
#!/bin/env/ python2.7
# Version 1.0.0
# Simple program to checkout in supreme
# adding multiprocessing and proxy support
import sys
import json
import time
import requests
@bytesizedpcs
bytesizedpcs / d3stryr-3stripes.php
Created October 2, 2016 03:46 — forked from TenF1ngahz/d3stryr-3stripes.php
All Day I Dream About Sleeping
<html>
<head>
<meta charset="UTF-8">
<?php $debug=False; ?>
<title>d3stryr 3stripes</title>
<script>
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
@bytesizedpcs
bytesizedpcs / i-suck-at-pong-ism.js
Created September 22, 2016 15:21
ARCAD-ISM CHEAT
var email=email;
var points=100;
var token=token;
var hex_chr = "0123456789abcdef";
function rhex(num) {
str = "";
for (j = 0; j <= 3; j++) str += hex_chr.charAt((num >> (j * 8 + 4)) & 0x0F) + hex_chr.charAt((num >> (j * 8)) & 0x0F);
return str