Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| // Function to find the latitude and longitude of a location. | |
| function geocodeSelectedCells() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var cells = sheet.getActiveRange(); | |
| // Must have selected 4 columns (Street, City, Lat and Lng). | |
| // Lat and Lng may ofcourse be empty (but you have to select them anyway). | |
| // Must have selected at least 1 row. | |
| if (cells.getNumColumns() != 4) { |
| // jquery countdown: http://keith-wood.name/countdown.html | |
| var countdown_date = "07-05-1990 02:00"; | |
| var dateRegex = countdown_date.match(/(\d{2})-(\d{2})-(\d{4}) (.*)/); | |
| var newDate = dateRegex[3] + "/" + dateRegex[2] + "/" + dateRegex[1] + " " + dateRegex[4]; | |
| var date = new Date(newDate); | |
| $(".countdown-timer").countdown({until: date, format: "YODH", padZeroes: true}); |
| {{#link-to "about" tagName="li" href="false"}}<a {{bind-attr href="view.href"}}>About</a>{{/link-to}} |
| $(".latest_work2 .swiper").on("change-class", function(){ | |
| // if the swiper div has the class 'pause' (which it receives when a YT video is not playing) it stops the cycle | |
| if (slideshow2.slides.length > 3){ | |
| if ($(".latest_work2 .swiper").hasClass("pause")){ | |
| slideshow2.stopAutoplay() | |
| } else { | |
| slideshow2.startAutoplay() | |
| } | |
| } | |
| }); |
| .container{class: "#{classes}", id: "#{ids}"} | |
| .container_top | |
| .container_top_left_corner | |
| .container_top_border | |
| .container_top_right_corner | |
| .container_left | |
| .container_content | |
| = yield | |
| .container_right | |
| .container_bottom |
| def span_capitalize(string) | |
| name = string.match(/(^[a-z])(.*)/i) | |
| first_letter = name[1] | |
| rest = name[2] | |
| content_tag(:span, first_letter) + rest | |
| end |
| %h2 | |
| = link_to "javascript:void(0);", class: "info" do | |
| Information | |
| = image_tag "arrowDown.jpg" | |
| = image_tag "arrowUp.jpg", style: "display:none;" | |
| .infoContainer | |
| %p Info text |
| $(function(){ | |
| // this line isn't really necessary here but you have to append this attribute to the element you want the html stored of. | |
| $("#wrapper").attr("contenteditable", "true") | |
| var content = document.getElementById('wrapper'); | |
| // save the page's state after you're done with editing and clicked outside the content | |
| $(content).blur(function() { | |
| localStorage.setItem('page_html', this.innerHTML); |
| // paste this in your chrome's console | |
| for(var x in localStorage)console.log(x+"="+((localStorage[x].length * 2)/1024/1024).toFixed(2)+" MB"); |