Skip to content

Instantly share code, notes, and snippets.

from readypipe import requests, starting_task, subtask, schedule, save, get_attempts
URLS = {
'Andrew Yang': 'https://twitter.com/andrewyang',
'Bernie Sanders': 'https://twitter.com/BernieSanders',
'Elizabeth Warren': 'https://twitter.com/ewarren',
'Cory Booker': 'https://twitter.com/CoryBooker',
'Kamala Harris': 'https://twitter.com/KamalaHarris',
'Pete Buttigieg': 'https://twitter.com/PeteButtigieg',
'Julian Castro': 'https://twitter.com/JulianCastro',
@selaromi
selaromi / make-flashlight-work-on.yosemite.md
Last active July 25, 2023 19:21
Steps to make Flashlight work on 10.10.4 (doesn't work for El Capitan)

Make Flashlight work on 10.10.4

  1. Install SIMBL http://culater.net/software/SIMBL/SIMBL.php
  2. Copy SpotlightSIMBL.bundle to /Library/Application Support/SIMBL/Plugins/ (a)
  3. Copy Flashlight.osax to ~/Library/ScriptingAdditions/ (b)
  4. Disable Flashlight
  5. Enable Flashlight
  6. Open Script Editor on your Mac (look for "Script Editor In Spotlight") and paste the following code (don't change Snow Leopard for Yosemite)
tell application "Spotlight" to inject SIMBL into Snow Leopard
@arulrajnet
arulrajnet / apkdl.sh
Last active December 13, 2023 20:33
Script to download apk file from Google Play a.k.a Android Market.
#!/bin/bash
#
# Script to download apk file from Google Play a.k.a Android Market.
# Accepts package name or Google Play URL as input.
# Files are download from apk-dl.com
# author : Arul (@arulrajnet)
#
APK_DL_URL="http://apk-dl.com/store/apps/details?id=%s"
PACKAGE_NAME=""
@robdmoore
robdmoore / gist:f82d74d4c377d4f3755e
Created August 31, 2014 06:14
List all documents in an Azure DocumentDB Document Collection
class Program
{
static void Main(string[] args)
{
Task.WaitAll(new[] {DoStuff()});
}
private static async Task DoStuff()
{
var client = new DocumentClient(new Uri("https://<documentdbtenant>.documents.azure.com:443/"),
@kitelife
kitelife / segmentfault-1010000000174694.py
Last active November 12, 2019 01:24
Python如何将字符串转换成字典dict类型?
#!/usr/bin/python
#-*- coding: utf-8 -*-
'''
http://segmentfault.com/q/1010000000174694
Python如何将字符串转换成字典dict类型?
有下列字符串:
user = "{'name' : 'jim', 'sex' : 'male', 'age': 18}"
如何将字符串转换成字典dict类型?