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 | |
for (( i=1; i<=500; i++ )) | |
do | |
# Generate a random filename | |
filename="random_image_${i}.png" | |
# Use ImageMagick to create a random 100x100 pixel image | |
color1=$(shuf -e $(convert -list color | grep srgb | cut -d' ' -f1) | head -1 | tr [:upper:] [:lower:]) | |
color2=$(shuf -e $(convert -list color | grep srgb | cut -d' ' -f1) | head -1 | tr [:upper:] [:lower:]) |
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
1 LOMEM: 14080 | |
5 GOSUB 10000: GOSUB 11000: GOSUB 16000: GOTO 135 | |
10 REM <<< LEMONADE STAND >>> | |
15 REM | |
20 REM FROM AN ORIGINAL PROGRAM | |
30 REM BY BOB JAMISON, OF THE | |
40 REM MINNESOTA EDUCATIONAL | |
50 REM COMPUTING CONSORTIUM | |
60 REM * * * | |
70 REM MODIFIED FOR THE APPLE |
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 must be in a client library with the category cq.authoring.editor.hook | |
/* global Granite, jQuery, document */ | |
(function ($, channel) { | |
'use strict'; | |
$(function () { | |
var loadedTime = new Date(); | |
channel.on('cq-layer-activated', function (event) { | |
if (event.prevLayer && event.layer !== event.prevLayer) { | |
var eventTime = new Date(); | |
if (event.prevLayer !== 'Annotate' && event.layer !== 'Annotate' && (eventTime - loadedTime) > 1500) { |
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
*= $6000; | |
!cpu 65c02; | |
PLOT = $F800 | |
CLEARSCR= $F832 | |
SETCOLOR= $F864 | |
LORES = $C056 | |
GFX = $C050 | |
CURRENT = $0 | |
lda LORES |
This is a SCRIPT-8 cassette.
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
#include <string> | |
#include <WiFi.h> | |
#include <WiFiClient.h> | |
#include <WebServer.h> | |
#include <ESPmDNS.h> | |
#include "SSD1306.h" | |
#define SDA 4 | |
#define SCL 15 | |
#define RST 16 //RST must be set by software |
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 groovy.json.JsonSlurper | |
//Get data from here: /system/sling/monitoring/mbeans/org/apache/jackrabbit/oak/%2522SessionStatistics%2522.2.json | |
def file = '/Users/brobert/Desktop/all_sessions.json' as File | |
def sanitizeStacktrace = {trace-> | |
if (trace.contains("loginAdministrative")) { | |
def lines = trace.split("\n") | |
def startIdx; | |
for (def idx=0; idx < lines.length; idx++) { |
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 java.util.zip.* | |
// Update these two lines to match the location of your playlists and what extensions to skip | |
playlistDir = "C:\\Users\\brobert\\AppData\\Roaming\\RetroArch\\playlists" as File | |
ignoreExtensions="cht|clt|sav|dtc|txt|html" | |
def appendPlaylist(playlistFile, path) { | |
println("Appending ${path}") | |
// Mac | Linux users change this to forward slash, I could have used the path separator property but I was lazy. | |
name = path.substring(path.lastIndexOf('\\')+1) |
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
BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB | |
BB BB 2 B2 B2 B2 B2 B2 2 BB BB B2 B2 2 B B 2 BB B BB 2 B2 B2 B2 B2 B2 2 BB BB | |
BB BB 2 BB 2 2 2 BB 2 BB B B2 2 2 B B B2 BB B BB 2 BB 2 2 2 BB 2 BB BB | |
BB BB 2 BB B2 B2 B2 BB 2 BB B2 B 2 BB 2 B2 B BB B2 BB 2 BB B2 B2 B2 BB 2 BB BB | |
BB BB B2 B2 B2 B2 B2 B2 B2 BB B2 B B2 BB B2 BB 2 B 2 BB B2 B2 B2 B2 B2 B2 B2 BB BB | |
BB BB B2 2 B BB BB B2 B2 B2 BB B2 2 BB BB 2 B B B B BB B 2 2 B B BB BB BB | |
BB BB B2 B B B2 BB B2 B2 BB 2 B2 B BB B B2 2 2 B B B2 B2 BB 2 BB B2 2 BB BB | |
BB BB 2 2 B2 B2 B 2 B2 B BB B2 2 B B 2 BB B 2 B B2 2 BB BB BB B B2 BB BB | |
BB BB 2 BB 2 B BB B B2 B 2 2 B2 BB B2 BB 2 B2 2 B2 2 BB B B2 B B2 2 BB BB | |
BB BB B2 BB B2 B2 BB BB B2 B2 2 BB 2 B B B2 B BB 2 B2 B2 B2 2 BB 2 BB BB BB BB |
NewerOlder