This is now a full fledged repo in https://github.com/joscha/mta-sts-cloudflare so it can be used directly with Cloudlfare's code capabilites
| export DIRENV_WARN_TIMEOUT=20s | |
| eval "$(devenv direnvrc)" | |
| # The use_devenv function supports passing flags to the devenv command | |
| # For example: use devenv --impure --option services.postgres.enable:bool true | |
| use devenv |
| #include "application.h" | |
| #include "DS1307.h" | |
| const uint8_t daysInMonth[13] = { | |
| 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 | |
| }; | |
| // number of days since 2000/01/01, valid for 2001..2099 | |
| static uint16_t date2days(uint16_t y, uint8_t m, uint8_t d) { | |
| if (y >= 2000) |
| function prettifySpreadsheetJSON(data) { | |
| var prefix = 'gsx$'; | |
| for (var i = 0; i < data.feed.entry.length; i++) { | |
| for (var key in data.feed.entry[i]) { | |
| if (data.feed.entry[i].hasOwnProperty(key) && key.substr(0,prefix.length) === prefix) { | |
| data.feed.entry[i][key.substr(prefix.length)] = data.feed.entry[i][key].$t; | |
| delete data.feed.entry[i][key]; | |
| } | |
| } | |
| } |
| #!/bin/sh | |
| set -o errexit | |
| bcm2385_version=1.38 | |
| rm bcm2835-$bcm2385_version.tar.gz | |
| wget http://www.airspayce.com/mikem/bcm2835/bcm2835-$bcm2385_version.tar.gz | |
| tar zxvf bcm2835-$bcm2385_version.tar.gz | |
| cd bcm2835-$bcm2385_version | |
| ./configure | |
| make |
| { | |
| "name": "jasmine-moar-matchers", | |
| "authors": [ | |
| "Hannes Diercks" | |
| ], | |
| "description": "Some additional Jasmine 2.0 Matchers.", | |
| "main": ["toBeInstanceOf.js", "toBeTypeOf.js", "promises.js"], | |
| "keywords": [ | |
| "jasmine", | |
| "matcher" |
| // jQuery Deparam - v0.1.0 - 6/14/2011 | |
| // http://benalman.com/ | |
| // Copyright (c) 2011 Ben Alman; Licensed MIT, GPL | |
| (function($) { | |
| // Creating an internal undef value is safer than using undefined, in case it | |
| // was ever overwritten. | |
| var undef; | |
| // A handy reference. | |
| var decode = decodeURIComponent; |
From Meteor's documentation:
In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node. We find the linear execution model a better fit for the typical server code in a Meteor application.
This guide serves as a mini-tour of tools, trix and patterns that can be used to run async code in Meteor.
Sometimes we need to run async code in Meteor.methods. For this we create a Future to block until the async code has finished. This pattern can be seen all over Meteor's own codebase:
From Meteor's documentation:
In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node. We find the linear execution model a better fit for the typical server code in a Meteor application.
This guide serves as a mini-tour of tools, trix and patterns that can be used to run async code in Meteor.
Sometimes we need to run async code in Meteor.methods. For this we create a Future to block until the async code has finished. This pattern can be seen all over Meteor's own codebase:
| function substitute { | |
| if [ -z "$1" -o -z "$2" ]; then | |
| echo "Usage: substitue FROM_STRING TO_STRING [OPTION]..." | |
| echo | |
| echo "Replace all occurances of FROM_STRING (a sed-compatible regular" | |
| echo "expression) with TO_STRING in all files for which ack-grep matches" | |
| echo "FROM_STRING." | |
| echo | |
| echo "Any additional options are passed directly to ack-grep (e.g.," | |
| echo " --type=html would only run the substitution on html files)." |