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 PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | |
<html style="vertical-align: baseline; font-style: normal; font-variant: normal; font-weight: normal; font-size: normal; line-height: normal; margin: 0; padding: 0; border: 0;"> | |
<head><style> | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, |
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> | |
<link href="http://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css"> | |
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet" type="text/css"> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<div id="wrapper" style="width: 100%; position: absolute; top: 0; background-image: url('https://s3.amazonaws.com/myfangate.com/vydiaemail/repeatingbg.jpg'); background-repeat: repeat; overflow-x: hidden;"> |
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 catItemS = ['.cat-item-45', '.cat-item-36']; | |
var catItemsLength = catItemS.length; | |
for (var i = 0; i < catItemsLength; i++){ | |
orGanize(catItemS[i]); | |
} | |
function orGanize(){ | |
var catItem = catItemS[i] |
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 class="play">Play</div> |
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
=== STRING INTERPOLATION === | |
Combining strings and numbers is called string interpolation. | |
String interpolation is the act of inserting a non-string value into a String, | |
thus resulting in a new String. Interpolation is accomplished with this #{ } syntax. | |
EXAMPLES: | |
• p "hello #{3}" | |
• num = 5 |
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
In Rails 4 App | |
application.rb: | |
config.action_dispatch.default_headers.merge!({'X-Frame-Options' => 'ALLOWALL'}) | |
In Fangate: | |
<style> |
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
//Get fngt appdata | |
var urlParams; | |
(window.onpopstate = function () { | |
var match, | |
pl = /\+/g, // Regex for replacing addition symbol with a space | |
search = /([^&=]+)=?([^&]*)/g, | |
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); }, | |
query = window.location.search.substring(1); |
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
Your CSS | |
<style> | |
#map_canvas { | |
height: 250px; | |
margin: 0; | |
padding: 0; } | |
</style> | |
Put this where you want the map to show |
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
<iframe height="450" frameborder="0" style="border:0; width: 100%;" src="https://www.google.com/maps/embed/v1/place?q=Windward%20Beach%20Park%2C%20265%20Princeton%20Ave%2C%20Brick%2C%20NJ%2008724%2C%20United%20States&key=AIzaSyDKm5_ve-zgpXD0zxp89PYnibNPSO0BoSM"></iframe> |
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
require 'sad_panda' | |
require 'twitter' | |
config = { | |
consumer_key: "*", | |
consumer_secret: "*", | |
} | |
client = Twitter::REST::Client.new(config) |
OlderNewer