Skip to content

Instantly share code, notes, and snippets.

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
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'],
#!/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
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,
#!/usr/bin/env python
import datetime
import inspect
import json
import lxml.html
from lxml.cssselect import CSSSelector
import re
import requests
import os
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',
@bytesizedpcs
bytesizedpcs / d3stryr-3stripes.php
Created September 16, 2016 05:20
All Day I Dream About Sleeping
<html>
<head>
<meta charset="UTF-8">
<!--
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.