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
/* | |
👉 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!! |
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
//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: |
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 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) |
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
<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="" /> |
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
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(){ |
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
<!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> |
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
@media(max-width:767px){} | |
@media(min-width:768px){} | |
@media(min-width:992px){} | |
@media(min-width:1200px){} |
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
<?php | |
if(isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'reddit.com') !== false) { | |
echo 'Hi reddit reader!!'; | |
} | |
?> |