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
puts "Pick the highest possible guessing number." | |
puts | |
range_limit = gets.chomp.to_i | |
puts | |
puts "How many tries would you like." | |
puts | |
max_tries = gets.chomp.to_i | |
random_number = rand(range_limit) + 1 | |
guess = 0 | |
tries = 0 |
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
#pragma config(Sensor, in1, Light, sensorReflection) | |
#pragma config(Sensor, dgtl1, Start, sensorTouch) | |
#pragma config(Sensor, dgtl2, End, sensorTouch) | |
#pragma config(Sensor, dgtl4, Rotations, sensorQuadEncoder) | |
#pragma config(Sensor, dgtl6, Stop, sensorTouch) | |
#pragma config(Motor, port2, runMotor, tmotorVex269, openLoop) | |
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// | |
/* | |
Project Title: Transfer System |
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
#pragma config(Sensor, in1, lineFollower, sensorLineFollower) | |
#pragma config(Sensor, in2, potentiometer, sensorPotentiometer) | |
#pragma config(Sensor, in3, lightSensor, sensorReflection) | |
#pragma config(Sensor, dgtl1, limitSwitch, sensorTouch) | |
#pragma config(Sensor, dgtl2, bumpSwitch, sensorTouch) | |
#pragma config(Sensor, dgtl3, quad, sensorQuadEncoder) | |
#pragma config(Sensor, dgtl5, sonar, sensorSONAR_inch) | |
#pragma config(Sensor, dgtl12, green, sensorDigitalOut) | |
#pragma config(Motor, port2, rightMotor, tmotorVex269, openLoop) | |
#pragma config(Motor, port3, leftMotor, tmotorVex269, openLoop) |
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
class Me | |
def class | |
return "Human" | |
end | |
def greetings | |
print "HELLO WORLD" | |
puts | |
print "A little about me." |
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
div { | |
border-radius: 5px; | |
} | |
#header { | |
z-index: 1; | |
position: fixed; | |
width: 97.5%; | |
margin-top: -20px; | |
height: 60px; |
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
Fun List | |
*Make Zurb Foundation Template for TEDx website (Default version and Inverted Version) | |
*Make Bootstrap Template for TEDx website (Default version and Inverted Version) | |
Note: Simple html, css and Javascript version; if possible [Gem that will auto generate this | |
and allow user to select choices between Foundation || Bootstrap & Default || Inverted version.] | |
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
var userChoice = prompt("Do you choose rock, paper or scissors?"); | |
var computerChoice = Math.random(); | |
if (computerChoice < 0.34) { | |
computerChoice = "rock"; | |
} else if(computerChoice <= 0.67) { | |
computerChoice = "paper"; | |
} else { | |
computerChoice = "scissors"; | |
} |
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
/* CSS FRIENDLY BUTTONS*/ | |
.button { | |
width: 10%; | |
color: #fff;/* MoDIFy to your content*/ | |
text-decoration: none; | |
-moz-border-radius: 5px; | |
-webkit-border-radius: 5px; | |
border-radius: 5px; | |
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
http://cssdb.co/ | Popular CSS Libraries | |
http://www.slidesjs.com/ | Simple for Slideshow | |
http://gridpak.com/ | CSS Grid | |
http://nick-jonas.github.io/windows/ | Fullscreen display | |
http://manos.malihu.gr/jquery-custom-content-scroller/ | Scrollbar | |
http://dfcb.github.io/BigVideo.js/ | Video Background | |
https://developers.google.com/youtube/youtube_player_demo | Customize Embed youtube player | |
http://fortawesome.github.io/Font-Awesome/ | Cool ICONS (works well with css) | |
http://aozora.github.io/bootmetro/index.html | Bootstrap Metro Style | |
http://designmodo.com/flat/ | Flat UI (Bootstrap Metro Style really..) |
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
# Toggle in ruby a simple example | |
#we will first define the toggle method | |
#and it takes an argument and toggles the value of that argument | |
#(e.i either true or false) | |
def toggle(arg) | |
arg = !arg | |
end | |
#now let's set a variable to true |
OlderNewer