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
ifs( | |
prop("Recurrence") == "Daily", | |
dateAdd( | |
if( | |
now() > prop("Due Date"), | |
now(), | |
prop("Due Date") | |
), | |
1, | |
"days" |
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
@font-face { | |
font-family: "Operator Mono"; | |
font-style: normal; | |
font-weight: 200; | |
src: url('data:font/otf;charset-utf-8;base64,T1RUTwAMAIAAAwBAQ0ZGIGmv3kEAABCIAABo00RTSUcAAAABAACFyAAAAAhHUE9TTGZfxAAAeVwAAACwR1NVQjtfIFwAAHoMAAAITk9TLzJYTuWwAAABMAAAAGBjbWFwm+JeqAAACngAAAXuaGVhZAb+gqEAAADMAAAANmhoZWEGLwDqAAABBAAAACRobXR4RvNHRQAAglwAAANqbWF4cAGyUAAAAAEoAAAABm5hbWXbDDN9AAABkAAACOdwb3N0/7AAQQAAEGgAAAAgAAEAAAABAIPnc21TXw889QADA+gAAAAA0r17ywAAAADSvcIb//b+4AJ2BHgAAAADAAIAAAAAAAAAAQAAA8D/EAAAAib/9v+wAnYAAQAAAAAAAAAAAAAAAAAAAAMAAFAAAbIAAAADAiYBRQAFAAQCgwKD/+EAoAKDAoMAPQE7AEABRgAAAgAACQAAAAAAAKAAAP8QAABbAAAAAAAAAABIJkNvAAAAIOENAyD/OADIA8AA8AAAAIsAAAAAAeoCbAAAACAAAwAAAC4CLgABAAAAAAAAADoAAAABAAAAAAABAA0AOgABAAAAAAACAAQARwABAAAAAAADAB8ASwABAAAAAAAEABIAagABAAAAAAAFAA0AfAABAAAAAAAGABEAiQABAAAAAAAHAGAAmgABAAAAAAAIAA0A+gABAAAAAAAJAA0A+gABAAAAAAALABIBBwABAAAAAAAMABIBBwABAAAAAAANAIIBGQABAAAAAAAOACsBmwABAAAAAAAQAA0AOgABAAAAAAARAAQARwABAAAAAAEAABgBxgABAAAAAAEBAAwB3gABAAAAAAECAA0B6gABAAAAAAEDABQB9wABAAAAAAEEAA4CCwABAAAAAAEFAB |
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
/** | |
* Helper function: Creates a "range array" from 0 to n-1 | |
* | |
* @param {number} n Number of elements in range array | |
* @return {Array} The range array | |
*/ | |
const range = n => [...Array(n+1).keys()].slice(1); | |
/** | |
* Helper function: returns a random number between min and max |
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 Html exposing (text) | |
type alias Energy = Int | |
type alias Position = { x: Int, y: Int } | |
type alias GameObject = { pos: Position, kind: Kind } | |
type Kind = Lifeform Energy | Obstacle | |
moveTo: GameObject -> Position -> GameObject | |
moveTo obj newPos = |
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
from collections import OrderedDict | |
import editor | |
import re | |
import sys | |
from urllib.parse import urlencode, quote | |
import webbrowser | |
key = "<YOUR KEY>" | |
def get_path(): |
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
# coding: utf-8 | |
import appex | |
import console | |
import keychain | |
import dialogs | |
import re | |
from pygithub3 import Github |
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
// Bacon.js playground | |
// This is how event handling is done in jQuery | |
$('#btn').on('click', function(evt) { | |
alert("I was clicked!"); | |
}); | |
// This is how you do it in Bacon.js | |
var click = $('#btn').asEventStream('click'); | |
click.onValue(function(evt) { |
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 keychain | |
import requests | |
import editor | |
import sys | |
import re | |
GITHUB_USER = 'your_github_username' | |
GITHUB_TOKEN = keychain.get_password('github', GITHUB_USER) | |
FOLDER_PREFIX = '' # Usage: 'Path/to/folder/' | |
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 T7\Bundle\OAuthBundle\Form; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
use Symfony\Component\Validator\ExecutionContextInterface; |
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
# vim:se filetype=ruby | |
# vim:se foldlevel=3 | |
# | |
# Hacks and monkeys to run Symfony2 applications as Rack apps using | |
# the rack-legacy and rack-rewrite gems. | |
# | |
# A couple of rack-rewrite rules take care of handing requests to the | |
# default front controller (app.php) and a subclass of rack-legacy's | |
# Php fixes PATH_INFO for Symfony routing. | |
# |
NewerOlder