Skip to content

Instantly share code, notes, and snippets.

@melevittfl
melevittfl / Lightwave Authentication
Last active July 31, 2021 09:17
Example request/response to Lightwave
curl -X POST \
https://auth.lightwaverf.com/v2/lightwaverf/autouserlogin/lwapps \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-H 'x-lwrf-appid: ios-01' \
-d '{
"email": "email",
"password": "password",
"version": "2.0"
}'

Keybase proof

I hereby claim:

  • I am melevittfl on github.
  • I am marklevitt (https://keybase.io/marklevitt) on keybase.
  • I have a public key ASCOUh8EMGKGewifdaR7McdrRFS4sIL02HvQ_jse-lSGuAo

To claim this, I am signing this object:

@melevittfl
melevittfl / loggingConfig.py
Created March 9, 2017 11:25
Python Dict based logging config
LOG_SETTINGS = {
'version': 1,
'root': {
'level': 'INFO',
'handlers': ['file'],
},
'handlers': {
'file': {
'class': 'logging.handlers.RotatingFileHandler',
'level': 'INFO',
@melevittfl
melevittfl / json2excel.py
Created May 4, 2015 10:38
Small utility to convert a JSON language file to an Excel sheet
import argparse
import json
from openpyxl import Workbook
def get_json(filename):
"""
:param filename: The JSON file to open
:return: A Json string
"""
@melevittfl
melevittfl / Target.java
Created May 28, 2013 17:09
Assignment 2: Target. Stanford CS106A iTunes U course. Lot's of people seem to duplicate the code for each circle. I like me solution because it only does the actual drawing in once place.
import acm.graphics.*;
import acm.program.GraphicsProgram;
import java.awt.*;
public class Target extends GraphicsProgram {