This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| String response; | |
| boolean isNo; | |
| do{ | |
| response = console.readLine("Do you understand do while loops? "); | |
| isNo = response.equalsIgnoreCase("no"); | |
| } while (isNo); |
This file contains hidden or 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
| public boolean isTriangle() { | |
| if(mSide1 + mSide2 < mSide3 || mSide2 + mSide3 < mSide1 || mSide3 + mSide1 < mSide2) { | |
| return false; | |
| } else { | |
| return true; | |
| } | |
| } | |
| public boolean isIsosceles() { | |
| if (this.isTriangle() == true && (mSide1 == mSide2 && mSide2 != mSide3 || mSide2 == mSide3 && mSide3 != mSide1 || mSide3 == mSide1 && mSide1 != mSide2)) { | |
| return true; |
This file contains hidden or 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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
This file contains hidden or 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
| String listString = ""; | |
| for (String s : stringArrayList) | |
| { | |
| listString += s + "\t"; | |
| } | |
| return listString; | |
| } |
This file contains hidden or 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
| <form action="/" method="post"> | |
| <div class="form-group"> | |
| <select id="stylist" name="stylist" class="form-control" type="text" onchange="this.form.submit();"> | |
| <option selected="true" disabled="disabled">Choose a Stylist</option> | |
| #foreach($stylist in $stylists) | |
| <option value="$stylist.getID()">$stylist.getName()</option> | |
| #end | |
| </select> | |
| </div> |
This file contains hidden or 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
| function print(message) { | |
| var outputDiv = document.getElementById('output'); | |
| outputDiv.innerHTML = message; | |
| } |
This file contains hidden or 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
| raspivid -o - -t 0 -b 3000000 | avconv -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://[insert Youtube RTMP broadcast addresss here] |
This file contains hidden or 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
| Shader "Flipping Normals" { | |
| Properties { | |
| _MainTex ("Base (RGB)", 2D) = "white" {} | |
| } | |
| SubShader { | |
| Tags { "RenderType" = "Opaque" } | |
| Cull Off |
This file contains hidden or 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/bash | |
| set -e | |
| echo "Updating system clock" | |
| timedatectl set-ntp true | |
| echo "Partitioning disk" | |
| fdisk /dev/vda <<EOF | |
| o | |
| n |
OlderNewer