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 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'], |
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, { 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() { |
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, { 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', |
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, { 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, |
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
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: { |
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
# ENTER USERNAME AND PASSWORD BELOW | |
# - FOOTCARTS | |
import requests | |
import json | |
import time | |
from time import sleep | |
goat = requests.Session() | |
cookies = { | |
'_sneakers_session': 'Ui9jZ2Y5UTJmWmdLd0w2MDllUTZmTHdSOHdQa0FHVmRMTzZZWE83S0ZDbUxQVVR6NmpueXBRekh1cXZpSXlISWJPbHA1NDgrUk5zOFRTVWd5MGVHd2p5L3gyUkI0TDFMSEFpbUVDRUlRSXVXdStGV21lUHVSRnZPWUJBZS8vRmtRTThFVUo1QWp5L2ZIWUJONXFFYk00WGhjM1lnTnlEUGx4OHZqeWVwUlhnPS0teGZzMnl2ZHZCU0FjUUdwS2QzMHoxUT09--f5b1708b355a4f830e2eeebde10bd26ebd6b4ea5', |
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
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 |
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
#!/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 |
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
<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(); |
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
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 |
NewerOlder