Skip to content

Instantly share code, notes, and snippets.

@justinlevi
justinlevi / Readme.md
Last active September 12, 2023 21:56
The Earthing Movie - A deep dive critique

Review

The documentary begins with a personal anecdote from the filmmakers, Rebecca and Josh, about their experiences with health issues and their subsequent exploration of alternative medicine. While personal stories can be compelling, they are not a substitute for rigorous scientific evidence. The filmmakers' experiences are anecdotal and cannot be generalized to the broader population. The filmmakers then introduce the concept of CBD, or cannabidiol, a compound found in cannabis. While there is some evidence that CBD may have therapeutic benefits for certain conditions, such as epilepsy, much of the

//
// RBResizer.swift
// Locker
//
// Created by Hampton Catlin on 6/20/14.
// Copyright (c) 2014 rarebit. All rights reserved.
// Updated by Justin Winter on 11/29/15.
//
extension UIImage {
@justinlevi
justinlevi / highlight.csv
Last active November 7, 2022 22:23
New York State D3 Counties Highlight & Hover
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
county
St_Lawrence
Chemung
Ulster
Albany
@justinlevi
justinlevi / disable-adobe.sh
Created November 16, 2017 17:55
Disable all Adobe Processes
#!/bin/bash
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
launchctl unload -w /Library/LaunchAgents/com.adobe.ARMDCHelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a23d420d.plist
launchctl unload -w /Library/LaunchDaemons/com.adobe.agsservice.plist
launchctl unload -w /Library/LaunchDaemons/com.adobe.ARMDC.Communicator.plist
launchctl unload -w /Library/LaunchDaemons/com.adobe.ARMDC.SMJobBlessHelper.plist
launchctl unload -w /Library/LaunchDaemons/com.adobe.adobeupdatedaemon.plist
sudo launchctl unload -w /Library/LaunchDaemons/com.adobe.ARMDC.Communicator.plist
@justinlevi
justinlevi / enable_adobe.sh
Created November 16, 2017 17:55
Enable Adobe Processes
#!/bin/bash
sudo mv /Library/LaunchAgents/AdobeShit/com.adobe.* /Library/LaunchAgents/
sudo mv /Library/Application\ Support/AdobeShit/* /Library/Application\ Support/
sudo mv ~/Library/LaunchAgents/AdobeShit/* ~/Library/LaunchAgents/
launchctl load -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl load -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
launchctl load -w /Library/LaunchAgents/com.adobe.ARMDCHelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a23d420d.plist
launchctl load -w /Library/LaunchDaemons/com.adobe.agsservice.plist
@justinlevi
justinlevi / CAToneFileGeneratorSwift
Last active November 18, 2020 15:58
Swift CAToneFileGenerator "Learning Core Audio" Example
//: Playground - noun: a place where people can play
import UIKit
import Foundation
import AudioToolbox
import AVFoundation
import XCPlayground
func CheckError(error:OSStatus) {
if error == 0 {return}
@justinlevi
justinlevi / Drupal 8 Travis.yml - Simpletest, PHPUnit, Behat Tests
Created February 15, 2017 15:31
Travis.yml file for testing a custom Drupal 8 Module
# @file
# .travis.yml - Drupal 8 Travis CI Integration
language: php
sudo: false
php:
- 5.6
<?php
namespace Drupal\store_graph_upload\Plugin\Deriver;
use Drupal\Component\Plugin\Derivative\DeriverBase;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldTypePluginManagerInterface;
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
@justinlevi
justinlevi / dream.wav
Last active November 15, 2017 20:37
wavesjs segment and audio drag example
This file has been truncated, but you can view the full file.
@justinlevi
justinlevi / dream.wav
Last active November 15, 2017 17:55
wavesjs waves-ui segment and waveform drag bug | cleaned up
This file has been truncated, but you can view the full file.