Skip to content

Instantly share code, notes, and snippets.

@gregschwartz
gregschwartz / README.md
Last active July 28, 2016 17:17
RescueTime widget for Dashing.io

Preview

Description

A widget for Dashing which displays the number of hours you've logged on RescueTime, in one productivity grade. If you want time in multiple grade displayed, use multiple widgets (see example).

RescueTime is a "personal analytics service that shows you how you spend your time" on the computer.

@padicode
padicode / gist:0e379659feb7d8bf1148
Last active August 29, 2015 14:04
PadiAct Subscribe AdWords JavaScript Hook
<script type="text/javascript">
window.nrlskOnEvent = function(padiact)
{
if (padiact.type=='subscribe')
{
var google_conversion_id = XXXXXXXXXX; //replace with your value
var google_conversion_label = "XXXXXXXXXXXXXX"; //replace with your value
var image = new Image(1,1);
image.src = "http://www.googleadservices.com/pagead/ conversion/"+google_conversion_id+"/?label="+google_conversion_label+"&script=0";
}
@miawgogo
miawgogo / README.md
Last active April 22, 2021 15:10 — forked from roelentless/README.md
Countdown. REVISED EDITION!!!!

Countdown. REVISED EDITION!!!!

This is a fork of ruleb's count down that rended one of the else ifs unreachable in his code. Even though he was notified by menny people he never fixed his code so i took it on to... fix 1 line of code. This Fork may expand if i have the time to re-learn coffie and see if any outher code is broken.

The rest of this readme and the html code and scss is still the orginal by ruleb.

Description

Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.

@russorat
russorat / mcc-ad-disaproval-reasons.js
Created May 30, 2014 08:27
This script will run through all your AdWords accounts and look for Ads that have been disapproved
/********************************************************************************
* This script will run through all your AdWords accounts and look for Ads that
* have been disapproved
*
* @author Russell Savage <russellsavage@gmail.com>
* @version 1.0
* FreeAdWordsScripts.com
*
* THIS SOFTWARE IS PROVIDED BY Russell Savage ''AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@baxeico
baxeico / toggl_timesheet.py
Last active June 3, 2019 14:47
How to build a pretty Excel timesheet using Toggl API and Python. See https://www.guguweb.com/2014/03/13/build-excel-timesheet-toggl-api-python/
#!/usr/bin/python
import requests
from xlsxwriter import Workbook
import sys
from datetime import date, timedelta
import argparse
from math import floor, ceil
def toExcelTime(time, round_minutes=0, round_func=round):
# time is in milliseconds
@robertmarsal
robertmarsal / README.md
Last active March 20, 2022 02:26 — forked from mtowers/README.md
Google Analytics Real Time Visitors Widget for Dashing with OAuth2 Authentication
@padicode
padicode / gist:6761479
Last active December 24, 2015 07:09
PadiAct Naked Action HTML
<div class="padiOverlay" style="display: block;">
<div class="padiPop4Wrap" style="display: block;">
<div class="padiPop4Overlay" >
<div class="padiPopupContent" > <a href="#" class="padiClose" title="Close" style="display:block;" >&times;</a>
<div class="padiContent" style="display:block">
<h1 class="padiTitle">
<!-- any TEXT can go from here -->
@xander-miller
xander-miller / README.md
Last active May 19, 2016 01:50
Ntile dashing widget. A Dashing numbers widget that puts your numbers in statistical context.

#Ntile Widget# A Dashing widget that shows numbers in statistical context. This widget is also available in a GitHub Repository.

Demo Dashboard Screenshot

##Description## A Dashing widget (and an associated job) that will take any set of timestamped data, divid that data by day (or any other unit of time) and compare those units of time, and displays the current day in statistical context of previous days. It currently has three modes of operation Quartile, Quintile and Percentile (hench 'N'tile). The code is designed to take in a variety of data sources. Examples include:

  • Display number of new users your app has attracted this week compared to previous weeks.
  • Display how many customer service tickets have been closed by an individual employee today in the cont
@miku
miku / withsqlite.py
Last active November 30, 2022 20:31
Simple sqlite3 context manager for Python.
#!/usr/bin/env python
import sqlite3
class dbopen(object):
"""
Simple CM for sqlite3 databases. Commits everything at exit.
"""
def __init__(self, path):
self.path = path
@chrisatomix
chrisatomix / gist:6360730
Created August 28, 2013 00:22
Proof of concept Toggl API MultiRequest to load currently running timers.
<?php
/**
* Perform a multi-request to the Toggl API
* @param String $url The API URL you are requesting
* @param String $method HTTP Request Method (should be 'GET')
* @param Array $tokens An array of Toggl API Tokens and names
* @return Array An array of Time Entries
*/
function multiRequest($url, $method, $tokens) {