Skip to content

Instantly share code, notes, and snippets.

View nelantone's full-sized avatar

Tonio Serna nelantone

View GitHub Profile
if true
puts "this is true"
else
puts "this is false"
end
if (5+5==10)
puts "this is true"
else
puts "this is false"
puts 'Hi there!'
p 'Hi now also returning this string not only printing'
def say_hi
p 'I say hi to you!'
end
say_hi
def say_hi(nickname)
var works = [
{
title: "Formentera, Spain",
pic: "img/1.jpg",
url: "https://c2.staticflickr.com/6/5061/5898445045_e94e0c4338_b.jpg"
},
{
title: "Wienerwald, Austria",
pic: "img/3.jpg",
url: "https://c2.staticflickr.com/4/3340/4631011939_d6f27e0136_b.jpg"
@nelantone
nelantone / work.js
Last active July 19, 2016 17:13
2.8
var works = [
"img/1.jpg",
"img/3.jpg",
"img/a5.jpg",
"img/a6.jpg"
];
for(var i = 0; i < works.length; ++i ) {
$("#photos").append("\
<div class='col-sm-6 col-md-2'>\
@nelantone
nelantone / scripts.js
Last active July 21, 2016 15:38
Task 2.2(Js validator), 2.6, 2.7, 2.10
// Twitter
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
// Facebook
window.fbAsyncInit = function() {
FB.init({
appId : 'your-app-id',
xfbml : true,
version : 'v2.6'
});
};
* { box-sizing: border-box; }
.bottom_bg {
height:100%;
width:100%;
margin:0 0 10px;
background-image: url("http://nelantone.bitballoon.com/img/albufer_bg.jpg");
background-position: 50% 70%;
background-color: black;
}
@nelantone
nelantone / style.css
Last active July 15, 2016 18:13
Task 1.10 to 2.5
* { box-sizing: border-box; }
/*****navigation bar*****/
.nav {
display: inline-block;
background-color: black;
opacity: 0.8;
filter: alpha(opacity=80); /* For IE8 and earlier */
z-index: 1;
* { box-sizing: border-box; }
.bottom_bg {
height:100%;
width:100%;
/* min-height:500px;*/
margin:0 0 10px;
background-image: url("https://assets.about.me/background/users/a/n/t/antonioserna_1411265393_7.jpg");
background-position: 50% 70%;
background-color: black;
@nelantone
nelantone / style.css
Created July 8, 2016 12:24
Task 1.11
* { box-sizing: border-box; }
.bottom_bg {
height:100%;
width:100%;
/* min-height:500px;*/
margin:0 0 10px;
background-image: url("https://assets.about.me/background/users/a/n/t/antonioserna_1411265393_7.jpg");
background-position: 50% 70%;
background-color: black;
@nelantone
nelantone / style.css
Created July 7, 2016 22:57
Task 1.10
* { box-sizing: border-box; }
.bottom_bg {
height:100%;
width:100%;
min-height:500px;
margin:0 0 10px;
background-image: url("https://assets.about.me/background/users/a/n/t/antonioserna_1411265393_7.jpg");
background-position: 50% 70%;
background-color: black;