Skip to content

Instantly share code, notes, and snippets.

View drewrwilson's full-sized avatar
💬
drew is typing...

Drew Wilson drewrwilson

💬
drew is typing...
View GitHub Profile
@drewrwilson
drewrwilson / uncheck-all-checkboxes-for-viewed-file-on-github-pull-request.js
Created June 14, 2023 17:06
Uncheck all "Viewed" checkbox on a github pull request
/*
👉 Ok, imagine this: You're reviewing a pull request with 107 files. That's a lot of files!
✅ To keep track of your place while you review, you're clicking that nice Viewed checkbox
next to each file after you review it. Great, that button collapses the file and make it much more
manageable.
😱 But wait. You're through 47 files and the author just pushed a change. Oh no. Did the commit impact those
files? 42 files are collapsed. What are you supposed to do, manually uncheck 47 files?? AHHHHHH!!
@drewrwilson
drewrwilson / github-pages-boilerplate-step-by-step.idk
Last active August 5, 2016 16:30
Boilerplate webpage hosted on gh-pages - A step-by-step guide on making a simple starting point for a webpage hosted for free on github pages
//create a new repo
//git clone repo-url
git checkout -B gh-pages //make a gh-pages branch
git branch -D master //delete master branch
git push origin gh-pages //make a remote branch on github for gh-pages
//on github project make gh-pages the default branch
//on github delete master branch
//generate a landing page with all the stuff that I want. (I'll come back to this later)
//brainstorm of what I always use:
@drewrwilson
drewrwilson / camera.groovy
Last active August 29, 2015 14:27 — forked from madhephaestus/camera.groovy
BowlerStudio Cameras
import java.awt.image.BufferedImage;
import com.neuronrobotics.jniloader.Detection;
import java.util.List;
println("HELLO DUUUUUUDE")
// Starting with the connected camera from BowlerStudio
println(camera0)
//Create the default detector using "lbpcascade_frontalface.xml"
IObjectDetector detector = new HaarDetector("lbpcascade_frontalface.xml")
// Create the input and display images. The display is where the detector writes its detections overlay on the input image
BufferedImage inputImage = AbstractImageProvider.newBufferImage(640,480)
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="" />
<meta property="og:description" content="" />
<meta property="og:url" content="" />
<meta property="og:site_name" content="" />
<meta property="og:image" content="" />
jQuery.ajax({
url: 'example.json',
dataType: "json",
beforeSend: function(){
//do something while the data is loading. eg. $(this).closest('div').html('getting file...');
},
success: function(data) {
window.points = data;
},
complete: function(){
@drewrwilson
drewrwilson / bootstrap-boilerplate
Last active August 29, 2015 14:01 — forked from KHarshawat/bootstrap-boilerplate
This is a simple starting place for a bootstrap site, using CDNs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Starter Template for Bootstrap</title>
@drewrwilson
drewrwilson / gist:11066704
Created April 18, 2014 22:13
Bootstrap 3 Media Query Breakpoints
@media(max-width:767px){}
@media(min-width:768px){}
@media(min-width:992px){}
@media(min-width:1200px){}
@drewrwilson
drewrwilson / gist:6662832
Created September 22, 2013 19:11
Use php referer to display welcome message for reddit user
<?php
if(isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'reddit.com') !== false) {
echo 'Hi reddit reader!!';
}
?>