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 ApiController < ApplicationController | |
def retrieveTweets | |
binding.pry | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = "B3Rtidn2BG8dAqt5LDe54w" | |
config.consumer_secret = "Pn2GGbY4VrERWBUxFPFUoucK4HFv1azHHd62eCuqAU" | |
config.access_token = "28819560-rA0JdogFbLn6vHc73Xd6LpAtRatAnUfSQt7N33uL0" | |
config.access_token_secret = "XckW2zwkPlIpKpNjWxQoPVdgcfccVAWiFEJG0jRgKdnST" | |
client.search("#stanford").first.text | |
end |
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
<head></head> | |
<body> | |
<script> | |
var firstWords= ["cinema", "host", "aba", "train"]; | |
var secondWords=[ "cieman", "shot", "bab", "rain"]; | |
var anaTest = function(){ | |
var tester = 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
<head></head> | |
<body> | |
<script> | |
var expressions = [ ")(){}", "[]({})", "([])", "{()[]}", "([)]" ]; | |
function expTest(){ | |
var brackTest = function(x, z){ | |
for (var k = 1 +z; k < testInput.length; k++) { |
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
<head></head> | |
<body> | |
<script> | |
var expressions = [ ")(){}", "[]({})", "([])", "{()[]}", "([)]", '][' ]; | |
function expTest(){ | |
var brackTest = function(x, z){ | |
for (var k = 1 +z; k < testInput.length; k++) { |
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
<head></head> | |
<body> | |
<script> | |
var expressions = [ ")(){}", "[]({})", "([])", "{()[]}", "([)]", '][' ]; | |
function expTest(){ | |
var brackTest = function(x, z){ | |
for (var k = 1 +z; k < testInput.length; k++) { |
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
<head></head> | |
<body> | |
<script type="text/javascript"> | |
var one = ['1','2','3',['1','2','3',['1','2','3']]], | |
two = ['1','2','3',['1','2','3',['1','2','3']]]; | |
three = ['1','2','3',['1','2','3',['1','2','4']]]; | |
four = ['1','2','3',['1',['1','2','3'],'2','3']]; | |
var compare = function(first_array, second_array){ |
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> | |
<head> | |
<title>CSS selectors - Exercise 1</title> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" type="text/css" href="selectors-exercise.css"> | |
</head> | |
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
<script> | |
document.write ("<h1>FizzBuzz</h1>"); | |
for (var count = 1; count <= 100; count++) { | |
document.write (count + " "); | |
if (count % 3 == 0) { | |
document.write ("Fizz"); | |
} | |
if (count % 5 == 0) { | |
document.write ("Buzz"); | |
} |
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
document.write ("<h1>FizzBuzz</h1>"); | |
for (var count = 1; count <= 100; count++) { | |
document.write (count + " "); | |
if (count % 3 == 0) { | |
document.write ("Fizz"); | |
} | |
if (count % 5 == 0) { | |
document.write ("Buzz"); | |
} | |
document.write ("<br>") |
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> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<script type="text/javascript" src="fizzbuzz.js"></script> | |
</body> | |
</html> |
OlderNewer