Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# cycle-workspace
# Moves the currently active workspace to the next active display
# Depends on i3-py (`pip install i3-py`)
import i3
# figure out what is on, and what is currently on your screen.
focused_workspace = list(filter(lambda s: s['focused'], i3.get_workspaces()))[0]
@ineentho
ineentho / Facebook + Twitter Fan Count.html
Last active December 15, 2016 12:31 — forked from dmolsen/Facebook + Twitter Fan Count
Pulls the Facebook fan count and Twitter follower count for the specified accounts.
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
var f_page = "wvumountaineers"; // the page name for your fan page, e.g. the 'wvumountaineers' part of http://facebook.com/wvumountaineers
var t_page = "westvirginiau"; // the account name for your main twitter account
function add_commas(number) {
if (number.length > 3) {
var mod = number.length % 3;
<?php
$dbh = new PDO('mysql:host=julkalender3d.se.mysql;dbname=julkalender3d_s', 'julkalender3d_s', 'amax3Ds');
if (isset($_POST['Field4']))
{
$franvaro=htmlspecialchars($_POST['field106']);
if ($_POST['Field106']=="Second Choice")
$franvaro="Närvarande";