This file contains hidden or 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
<% | |
# this version works with index based numeric value keys | |
# note if you're storing this numeric value somewhere, | |
# you can never re-order the values and can only add to the end of the list | |
my $home_shows = 2; # current value | |
my $i = 0; | |
my @options = map { $i == $home_shows ? [$_ => $i++, selected => undef] : [$_ => $i++] } | |
qw(latest popular profile); | |
%> | |
<label class="label" for="home-shows">home shows</label> |
This file contains hidden or 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
;; nano.el -- A very minimal emacs | |
;; Usage: emacs -q -l nano.el | |
;; | |
;; Copyright (C) 2020 Nicolas .P Rougier | |
;; | |
;; Author: Nicolas P. Rougier <[email protected]> | |
;; | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or |
This file contains hidden or 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 Pitivi < Formula | |
# Required to create a virtualenv with Matplotlib. | |
include Language::Python::Virtualenv | |
desc "Powerful and easy to use video editor" | |
homepage "http://www.pitivi.org" | |
url "https://download.gnome.org/sources/pitivi/0.999/pitivi-0.999.tar.xz" | |
sha256 "cb6f8a831383e698c2117ca7caec77b8167a6b2e2b0fb9c375e6a4f7c815b757" | |
head do |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import subprocess | |
BROWSER='google-chrome' | |
# John Gruber's regex from http://daringfireball.net/2010/07/improved_regex_for_matching_urls |