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
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 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 urllib2 | |
import json | |
import csv | |
def write_to_csv(url): | |
response = urllib2.urlopen(url) | |
track_list = json.load(response) | |
for song in track_list: |
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
# 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 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 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
# Image series to video | |
ffmpeg -y -i %05d.tif -b:v 10M -vcodec mpeg4 video.mov | |
# Movie to GIF | |
ffmpeg -i input.mov -r 10 -pix_fmt rgb24 -vf scale=500:500 output.gif | |
# Webm Encoding |
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
// 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 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 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 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/bash | |
MOVIES=~/locker_attract | |
find "$MOVIES" -name '*.mov' -exec sh -c 'ffmpeg -loglevel quiet -stats -i "$0" -deadline best -qmax 15 -crf 5 -b:v 15M -strict -2 "${0%%.mov}.webm"' {} \; | |
exit; | |
find . -name '*.tif' -exec sh -c 'convert "$0" -format jpg -quality 80 -set colorspace RGB -colorspace sRGB -flatten -density 72 -resize 1080x1080 "${0%%.tif}.jpg"' {} \; |
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
# 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 | |
# |
NewerOlder