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
import axios from "axios"; | |
import { exec as execCb } from "child_process"; | |
import { createObjectCsvWriter } from "csv-writer"; | |
import { promisify } from "util"; | |
const exec = promisify(execCb); | |
const GITHUB_TOKEN = process.env.GITHUB_ACCESS_TOKEN; | |
const OWNER = process.env.GITHUB_REPO_OWNER; | |
const REPO = process.env.GITHUB_REPO_NAME; |
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
# task plugin helper | |
module RepeatsPlugin | |
FREQUENCY = { | |
"MINUTELY" => "minute", | |
"HOURLY" => "hour", | |
"DAILY" => "day", | |
"WEEKLY" => "week", | |
"MONTHLY" => "month", | |
"YEARLY" => "year" |
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
# Usage: | |
# | |
# Add worker(LogDNA.BatchLogger, []) to your application supervision tree. | |
# Add Mojito to your mix deps (or replace with HTTPoison or another HTTP library) | |
# | |
# Call LogDNA.BatchLogger.{debug / info / warn / error} to send logs to LogDNA | |
defmodule LogDNA do | |
require Logger | |
@url "https://logs.logdna.com/logs/ingest" |
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
# model history object example: | |
{ id: 102112, user_id: 5, column: "due", prev: null, value: "2012-02-06T14:17:21Z", | |
created_at: 1357859045 } | |
# method to return a string such as "completed this task" given a | |
# model_history object | |
# model - history display context, either "task" or "list" | |
history_string = (model) -> | |
if @task() | |
item = "<a href='#task-" + @task()[0] + "'>" + @task()[1] + "</a>" |
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
<uses-permission android:name="android.permission.READ_CONTACTS" /> |
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
public final class SimpleTask extends AbstractModel { | |
// --- properties | |
/** ID */ | |
public static final LongProperty ID = new LongProperty( | |
TABLE, ID_PROPERTY_NAME); | |
/** Name of Task */ | |
public static final StringProperty TITLE = new StringProperty( |