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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta name="description" content="demandPopin example" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta charset="UTF-8"> | |
<title>3431071</title> | |
<script id="sap-ui-bootstrap" |
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
function doGet(request) { | |
var output = ContentService.createTextOutput(); | |
var data = {}; | |
var id = request.parameters.id; | |
var sheet = request.parameters.sheet; | |
var ss = SpreadsheetApp.openById(id); | |
data["records"] = readData_(ss, sheet); | |
var callback = request.parameters.callback; | |
if (callback == undefined) { | |
output.setContent(JSON.stringify(data)); |
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
// 0-indexed columns | |
COMMITS = 3; | |
GITHUBREPO = 2; | |
TOKEN = ""; | |
function main() { | |
TOKEN = ScriptProperties.getProperty("githubtoken"); | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sh = ss.getSheetByName("Hacks"); |
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 itertools | |
import operator | |
print reduce( | |
operator.add, | |
map( | |
lambda n: (n[0]+1) * n[1], | |
enumerate( | |
map( | |
lambda name: reduce( |
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
report ydj_json_test. | |
types: | |
begin of ty_favcolour | |
, name type string | |
, colour type string | |
, end of ty_favcolour | |
. | |
types: |
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
var alphabet = 'abcdefghijklmnopqrstuvwxyz'; | |
function rotText(text, n) { | |
var newText = ""; | |
for (var i = 0, j = text.length; i < j; i++) { | |
newText += rot(text[i], n); | |
} | |
return newText; | |
} |
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
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>SAPUI5 Conditional Databinding</title> | |
<script src="resources/sap-ui-core.js" | |
type="text/javascript" | |
id="sap-ui-bootstrap" | |
data-sap-ui-libs="sap.ui.commons,sap.ui.table" | |
data-sap-ui-theme="sap_goldreflection"> | |
</script> |
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
class YREQUESTBIN definition | |
public | |
final | |
create public . | |
public section. | |
*"* public components of class YREQUESTBIN | |
*"* do not include other source files here!!! | |
data NAME type STRING . |
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
class ZCL_DJ0 definition | |
public | |
inheriting from /IWCOR/CL_DS_HDLR_DEBUG | |
final | |
create public . | |
public section. | |
class-methods RUN . | |
protected section. |
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
# Basecamp todos | |
# Reports a count of the person's outstanding todo items per todo list. | |
# Uses bcapi.coffee (coming soon!) | |
# (Don't forget to set the HUBOT_BASECAMP_KEY and HUBOT_BASECAMP_URL) | |
bcapi = require '../src/bcapi' | |
module.exports = (robot) -> | |
robot.hear /my todo(s| item)?/i, (msg) -> | |
basecamp_users msg, (people) -> |