System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Box Shadow</title> | |
<style> | |
.box { | |
height: 150px; | |
width: 300px; | |
margin: 20px; |
1. Download the recent version from nodejs.org | |
2. Run `msiexec /qn /l* node-log.txt /i node-vX.X.XX-x64.msi` |
/* | |
Gmail/Google Reader Sidebar Scroll Shadows | |
------------------------------------------- | |
Neat effect that mimics the scroll shadows that appear in the GOogle sitde bar and visually cues users to scroll up or down depending on their position. | |
Credit goes to Lea Verou for this awesome find. | |
Source: | |
Lea's Talk: http://www.youtube.com/watch?v=3ikye7Qc7Ak | |
Code Source: http://lea.verou.me/more-css-secrets/#slide9 | |
#!/bin/bash | |
# Requirements: | |
# - gcloud/gsutil is installed on the box | |
# - gcloud is logged in as a user with write access to Google Cloud Storage | |
# - The file has execution rights so that it can be run in cron | |
# - The Google Cloud Storage bucket already exits | |
# Exit on any error | |
set -e |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
def applications = env.APPLICATIONS.split(",").findAll { it }.collect { it.trim() } | |
def environment = env.ENVIRONMENT | |
def version = env.VERSION | |
def jobs = [:] | |
if (applications.size() < 1) { | |
error("ERROR: APPLICATIONS must be a comma-delimited list of applications to build") | |
} | |
for (int i = 0; i < applications.size(); i++) { |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
<!-- ADDITIONAL STYLESHEET HERE --> | |
<title>SITE NAME</title> | |
</head> |
""" | |
Convert YouTube subtitles(vtt) to human readable text. | |
Download only subtitles from YouTube with youtube-dl: | |
youtube-dl --skip-download --convert-subs vtt <video_url> | |
Note that default subtitle format provided by YouTube is ass, which is hard | |
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which | |
is easier to process. |
// Opera 8.0+ | |
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | |
// Firefox 1.0+ | |
var isFirefox = typeof InstallTrigger !== 'undefined'; | |
// Safari 3.0+ "[object HTMLElementConstructor]" | |
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification)); | |
// Internet Explorer 6-11 |
$(selector).popover({ trigger: "manual" , html: false, animation:true}) | |
.on("mouseenter", function () { | |
var _this = this; | |
$(this).popover("show"); | |
$(".popover").on("mouseleave", function () { | |
$(_this).popover('hide'); | |
}); | |
}).on("mouseleave", function () { | |
var _this = this; | |
setTimeout(function () { |