I hereby claim:
- I am rootux on github.
- I am galbracha (https://keybase.io/galbracha) on keybase.
- I have a public key ASAjFQA1sDcEyyV_SfAQ3CVI7oMFer64JSeTSh2zcnJY_wo
To claim this, I am signing this object:
| var dreamsPath = DriveApp.getFolderById('THE-ACTUAL-DRIVE-FOLDER-ID-CAN-BE-COPIED-FROM-URL'); | |
| var budgetTemplateFile = DriveApp.getFileById('THE-ACTUAL-DRIVE-BUDGET-FILE-ID-CAN-BE-COPIED-FROM-URL'); | |
| var budgetNewFileName = 'Budget - '; | |
| function createDream(dreamerEmail, dreamId, dreamName) { | |
| Logger.log("Got called with " + dreamerEmail +" " + dreamId + " " + dreamName); | |
| var newFolder = createFolder_(dreamerEmail, dreamId,dreamName); | |
| var templateFiles = copyTemplateFilesToFolder_(newFolder, dreamerEmail, dreamName); | |
| var result = {}; | |
| result['id'] = newFolder.getUrl(); |
| # Example Dockerfile | |
| FROM hello-world |
| function OnScrollToBottom() { | |
| 'ngInject'; | |
| let spacing = 40; | |
| return { | |
| restrict: 'A', | |
| link: function (scope, element, attrs) { | |
| const fn = attrs.onScrollToBottom, |
| /* Based on https://gist.github.com/rishabhmhjn/7028079 */ | |
| function HashtagLinky($filter, $sce) { | |
| 'ngInject' | |
| return function(text, target) { | |
| if (!text) return text; | |
| var replacedText = $filter('linky')(text, target); | |
| var targetAttr = ""; | |
| if (angular.isDefined(target)) { |
| alias gcd='git checkout development' | |
| alias gc='git checkout' | |
| alias gcb='git checkout -b' | |
| alias gs='git status' | |
| alias gb='git branch' | |
| alias gcm='git checkout master' | |
| alias gp='git pull' | |
| alias gl='git log --oneline --decorate --graph' | |
| alias gbdl='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d' | |
| if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi |
| /** | |
| * Test function for onEdit. Passes an event object to simulate an edit to | |
| * a cell in a spreadsheet. | |
| * Check for updates: https://stackoverflow.com/a/16089067/1677912 | |
| */ | |
| function test_onEdit() { | |
| onEdit({ | |
| user : Session.getActiveUser().getEmail(), | |
| source : SpreadsheetApp.getActiveSpreadsheet(), | |
| range : SpreadsheetApp.getActiveSpreadsheet().getActiveCell(), |
| service cloud.firestore { | |
| match /databases/{database}/documents { | |
| function isAdmin() { | |
| return exists(/databases/$(database)/documents/admins/$(request.auth.uid)); | |
| } | |
| function isUserAssigneeOrCreator() { | |
| return request.auth.uid == resource.assignee.id | |
| || request.auth.uid == resource.creator.id; |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # Source: http://code.activestate.com/recipes/325905-memoize-decorator-with-timeout/#c1 | |
| import time | |
| class MWT(object): | |
| """Memoize With Timeout""" | |
| _caches = {} | |
| _timeouts = {} |
| import os | |
| import sys | |
| import random | |
| import time | |
| import tempfile | |
| from datetime import datetime | |
| from multiprocessing import Process | |
| from utils import is_number |