This file contains 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 -*- | |
# | |
# This script generates a basic standup update out of completed and due tasks in Todoist. | |
# It considers business days only and holidays (if configured) | |
# | |
# Setup: | |
# | |
# Use python >= 3 |
This file contains 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
# -=-=-=- TERMINALFRED -=-=-=- | |
# | |
# ** a few zshell plugins I use: | |
# encode64: encode and decode base64 with e64 or d64 | |
# extract: to extract compressed files | |
# sublime | |
# colored-man-pages | |
# web-search | |
# z |
This file contains 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 bot reply "Yes", "No" or "Maybe" for tweets with questions | |
# Just config this script with your OAuth keys and execute it (for tokens check apps.twitter.com) | |
# Also make sure to install these gems | |
require "rubygems" | |
require "tweetstream" | |
require "em-http-request" | |
require "simple_oauth" | |
require "json" | |
require "uri" |
This file contains 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
<?php | |
namespace Frontend; | |
use Common\Cache\CacheLayer; | |
use Common\City\Entity\City; | |
use Common\City\Service\CityService; | |
use Common\CommonRoutes; | |
use Common\Mvc\Application; | |
use Fabfuel\Prophiler\Plugin\Manager\Phalcon; |
This file contains 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
<link rel="stylesheet" type="text/css" href="http://static.tumblr.com/n9ku3gx/bmmlda7os/prettify.css"/> | |
<script type="text/javascript" src="http://static.tumblr.com/n9ku3gx/1k0lda7q0/jquery.min.js"></script> | |
<script type="text/javascript" src="http://static.tumblr.com/n9ku3gx/DiKlda7r3/prettify.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$('pre.colorthis').addClass('prettyprint'); | |
prettyPrint(); | |
}); | |
</script> |
This file contains 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
<items> | |
<item uid="GET search/tweets" arg="https://dev.twitter.com/docs/api/1.1/get/search/tweets"><title>GET search/tweets</title><subtitle>/docs/api/1.1/get/search/tweets</subtitle></item> | |
<item uid="GET users/search" arg="https://dev.twitter.com/docs/api/1.1/get/users/search"><title>GET users/search</title><subtitle>/docs/api/1.1/get/users/search</subtitle></item> | |
<item uid="GET saved_searches/list" arg="https://dev.twitter.com/docs/api/1.1/get/saved_searches/list"><title>GET saved_searches/list</title><subtitle>/docs/api/1.1/get/saved_searches/list</subtitle></item> | |
<item uid="GET saved_searches/show/:id" arg="https://dev.twitter.com/docs/api/1.1/get/saved_searches/show/%3Aid"><title>GET saved_searches/show/:id</title><subtitle>/docs/api/1.1/get/saved_searches/show/%3Aid</subtitle></item> | |
<item uid="POST saved_searches/create" arg="https://dev.twitter.com/docs/api/1.1/post/saved_searches/create"><title>POST saved_searches/create</title><subtitle>/docs/api/1.1/post/saved_searches/create</subtitle></item> | |
< |
This file contains 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
$ echo "<items>"; \ | |
> curl http://apify.heroku.com/api/twitter_rest_api_v11_docs.json | \ | |
> jq -r '.[] | "<item uid=\"\(.resource)\" arg=\"\("https://dev.twitter.com" + .link)\"><title>\(.resource)</title><subtitle>\(.link)</subtitle></item>"' | \ | |
> grep 'uid=".*search.*" arg' ; \ | |
> echo "</items>" |
This file contains 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
# LINK CATCHER | |
# | |
# usage: set a QUERY of interest, the loop will run a search and | |
# retrieve links parsed from tweets to build a ranking of | |
# the most popular based on frequency, retweets and favorites | |
# at the moment of execution. | |
# | |
# Press CTRL+C to stop and show the report | |
# The more you wait, the more quality you get |
This file contains 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
<HTML> | |
<HEAD></HEAD> | |
<BODY> | |
<HEAD><TITLE>ENDERECO DAS FEIRAS POR DIA </TITLE> | |
</HEAD> | |
<BODY bgcolor="f9cd8a"> | |
<!--BODY background="/img_feiras/feiras.GIF"--><br> | |
<center> | |
<!--img src="/img_feiras/logo1.GIF" border=0 align=top><BR> | |
<font color=#006666 size=5><B><I>RELAÇÃO DE FEIRAS</I></B></FONT><BR--> |
This file contains 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
function onIq(xml) { | |
// in this case, the IQ stanzas handled are just subscription results | |
xmlDom = $(xml); | |
var iqId = xmlDom.attr('id'); | |
if (iqId == terms[0] || iqId == terms[1]) { | |
if (xmlDom.find('subscription:first').attr('subscription') == 'subscribed') { | |
console.log("Subscribed to "+iqId); | |
} | |
} | |
return true; |
NewerOlder