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
5 CLS | |
10 PRINT "THIS PROGRAM HELPS WITH YOUR PROBLEMS" | |
15 PRINT | |
20 PRINT "NAME YOUR PROBLEM, IS IT" | |
25 PRINT | |
30 PRINT "A, MONEY; B, FAMILY; OR C, FRIENDS" | |
40 INPUT S$ | |
50 IF S$ = "A" THEN 80 | |
60 IF S$ = "B" THEN 160 | |
70 IF S$ = "C" THEN 280 |
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
# me - this DAT. | |
# | |
# dat - the changed DAT | |
# rows - a list of row indices | |
# cols - a list of column indices | |
# cells - the list of cells that have changed content | |
# prev - the list of previous string contents of the changed cells | |
# | |
# Make sure the corresponding toggle is enabled in the DAT Execute DAT. | |
# |
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
this.eventSearchObj = { | |
ObjectType: 'Event', | |
CvSearchObject: { | |
attributes: { | |
SearchType: 'AndSearch', | |
xmlns: 'http://schemas.cvent.com/api/2006-11' | |
}, | |
Filter: [ | |
{ | |
Field: 'EventStartDate', |
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
// The lighting controller expects a JSON-formatted array of lights states in the following format: | |
[ | |
{ | |
"lightId": Number, | |
"state": Boolean | |
} | |
]; | |
// Sample usage: Turning on lights 1, 2 and 3. Turning off light 4. |
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
const hotspots = [ | |
{ | |
name: 'Eglise Saint-Eustache', | |
x: 0, | |
y: 0, | |
images: ['eglise-saint-eustache-1.jpg', 'eglise-saint-eustache-2.jpg'], | |
dateConstructed: '1532-1632', | |
beforeNapoleon: | |
'Named after Saint Eustace, this Catholic Church has been used for traditional services since its construction, except during the Revolution when it was desecrated and looted.', | |
connectionToNapoleon: |
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
{ | |
"editor.fontFamily": "DejaVu Sans Mono", | |
"workbench.colorTheme":"Default Dark+", | |
"prettier.tabWidth": 4, | |
"prettier.singleQuote": true, | |
"editor.wordWrapColumn": 0, | |
"editor.minimap.enabled": false, | |
"git.enableSmartCommit": true, | |
"git.autofetch": true, | |
"explorer.confirmDelete": false, |
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
# csv2json.py | |
# | |
# Copyright 2009 Brian Gershon -- briang at webcollective.coop | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
let ids = []; | |
const fs = require('fs'); | |
if(!String.prototype.padStart) { | |
String.prototype.padStart = function padStart(targetLength, padString) { | |
targetLength = targetLength >> 0; | |
padString = String(padString || ' '); | |
if(this.length > targetLength) { | |
return String(this); |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, division | |
from pygame.locals import * | |
import os | |
import pygame | |
import random | |
import serial |
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
#include <MPR121.h> | |
#include <Wire.h> | |
#define numElectrodes 6 | |
void setup() | |
{ | |
Serial.begin(9600); | |
while (!Serial); | |
Wire.begin(); |
NewerOlder