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
| Array.prototype.forEach.call(document.querySelectorAll('[class*="blurred_answer"]'), function(el){ el.className = el.className.replace(/blurred_answer[^\s]*/g, '') }) |
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
| $('.invbody-items:first tbody tr').map(function(){ | |
| return parseInt($(this).find('td:eq(3)').text().trim(), 10); | |
| }).get().reduce(function(left, right){ | |
| return (left || 0) + (right || 0); | |
| }); // total hours as a number |
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
| #!/bin/sh | |
| # Make sure only root can run our script | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi | |
| # Load configuration | |
| . /etc/route53/config |
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
| [ | |
| { | |
| "op": "core/column-removal", | |
| "description": "Remove column Adresse suite", | |
| "columnName": "Adresse suite" | |
| }, | |
| { | |
| "op": "core/text-transform", | |
| "description": "Text transform on cells in column Site web using expression grel:if(isNonBlank(value), 'http://'+replace(value, /^https?:\\/\\//, ''), null)", | |
| "engineConfig": { |
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
| [ | |
| { | |
| "op": "core/column-removal", | |
| "description": "Remove column Types de produits", | |
| "columnName": "Types de produits" | |
| }, | |
| { | |
| "op": "core/text-transform", | |
| "description": "Text transform on cells in column Adresse using expression grel:if (isNonBlank(cells[\"Adresse suite\"].value), join([value, cells[\"Adresse suite\"].value], \"\\n\"), value)", | |
| "engineConfig": { |
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
| [ | |
| { | |
| "op": "core/column-removal", | |
| "description": "Remove column File", | |
| "columnName": "File" | |
| }, | |
| { | |
| "op": "core/text-transform", | |
| "description": "Text transform on cells in column Adresse using expression grel:if (isNonBlank(cells[\"Adresse suite\"].value), join([value, cells[\"Adresse suite\"].value], \"\\n\"), value)", | |
| "engineConfig": { |
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
| (defstruct cell :x :y :state) | |
| (defstruct state :state) | |
| (def state-alive (struct state "alive")) | |
| (def state-dead (struct state "dead")) | |
| (def cell1 (struct cell 13 37 state-alive)) | |
| (def grille [(struct cell 13 37 state-alive) (struct cell 13 38 state-alive) (struct cell 14 37 state-alive)]) |
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
| HTTP/1.1 200 OK | |
| Date: Mon, 07 Jan 2013 09:26:17 GMT | |
| Server: Apache/2.2.22 (Unix) DAV/2 PHP/5.3.15 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/0.9.8r | |
| X-Robots-Tag: noindex | |
| X-Content-Type-Options: nosniff | |
| X-Frame-Options: SAMEORIGIN | |
| Expires: Thu, 17 Jan 2013 09:26:17 GMT | |
| Pragma: public | |
| Max-Age: 864000 | |
| Cache-Control: s-max-age: 1800, max-age: 864000 |
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
| function getTumblrOAuthConfig_(){ | |
| // values available once an app is registered here: http://www.tumblr.com/oauth/apps | |
| // registered app callback URL should be: https://script.google.com/macros | |
| var consumer_key = "<OAuth Consumer Key>"; | |
| var consumer_secret = "<Secret Key>"; | |
| var oAuthConfig = UrlFetchApp.addOAuthService("Tumblr"); | |
| oAuthConfig.setAccessTokenUrl('http://www.tumblr.com/oauth/access_token'); | |
| oAuthConfig.setAuthorizationUrl('http://www.tumblr.com/oauth/authorize'); |
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
| Array.prototype.slice.map(document.querySelectorAll('a[href]'), function(el){ | |
| return { "href": el.href, "rel": el.rel || null }; | |
| }); |