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
require 'net/https' | |
require 'uri' | |
@path = '/api/v6/clients.json' | |
# insert API token in the user variable | |
@user = '' | |
@pass = 'api_token' | |
uri = URI.parse('https://www.toggl.com') |
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
require 'net/https' | |
require 'uri' | |
require 'rubygems' | |
require 'json/pure' | |
@user = 'username' | |
@pass = 'password' | |
file = File.new("bc_proj.txt", "r") |
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
require 'net/https' | |
require 'uri' | |
# replace 9999999 with your instance id | |
@path = '/9999999/api/v1/projects.json' | |
@user = 'username' | |
@pass = 'password' | |
uri = URI.parse('https://basecamp.com') | |
http = Net::HTTP.new(uri.host, uri.port) |
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
require 'net/https' | |
require 'uri' | |
require 'rubygems' | |
require 'json/pure' | |
# replace 9999999 with your instance id | |
@path = '/9999999/api/v1/projects.json' | |
@user = 'username' | |
@pass = 'password' |
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
try | |
set thePing to do shell script "/sbin/ping -o -c 5 www.google.com" | |
on error | |
set thePing to "error" | |
end try | |
tell application "FileMaker Pro Advanced" | |
if thePing is not "error" then | |
set cell "g_internet" to "true" | |
else |
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
set archivedTasks to "" | |
set hoursEntries to "" | |
tell application "TaskPaper" | |
tell front document | |
-- don't care which file your log entry came from? | |
-- comment the next line out | |
set archivedTasks to "## " & name & return | |
set hoursEntries to "## " & name & ": Hours" & return | |
repeat with _task in search with query "project != Archive and @done" | |
if entry type of _task is not project type then |
NewerOlder