Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<head>
<style>
/** All of these styles are to ensure the canvas takes up the whole screen, and that the orig canvas is not visible */
body,html{font-family:sans-serif;color:#aaa;background:#000;margin:0;padding:0;height: 100%;}
#wrap{display: flex; height: 100%; align-items: center; justify-content: center;}
#orig{position: absolute; top: -99999px; left: -99999px;}
#debug{position: absolute;}
</style>
<meta name=viewport content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
@KaeruCT
KaeruCT / dokuwikifolder2markdown.js
Created August 7, 2023 13:23
nodejs script to convert a dokuwiki data folder to markdown files
const fs = require('fs');
const path = require('path');
const folderPath = './'; // Replace with the actual folder path
// Function to rename a file from .txt to .md and replace content
function renameAndReplace(filePath) {
const newFilePath = filePath.replace('.txt', '.md');
fs.renameSync(filePath, newFilePath);

Keybase proof

I hereby claim:

  • I am kaeruct on github.
  • I am kaeruct (https://keybase.io/kaeruct) on keybase.
  • I have a public key whose fingerprint is BF9E 3EFB 4677 898C F631 CB80 C6DA 1A18 34DE DE53

To claim this, I am signing this object:

@KaeruCT
KaeruCT / .conkyrc
Created June 5, 2014 23:46
new conky config
# Conky Google Now style #
# Conky settings #
background yes
update_interval 1
double_buffer yes
no_buffers yes
format_human_readable yes
# Window specifications #
@KaeruCT
KaeruCT / yt-js-api-example.html
Created May 23, 2014 19:36
Playing music in the background using the Youtube JS API
<!DOCTYPE html>
<html>
<body>
<div id="player" style="position: absolute; top: -9999px; left: -9999px;"></div>
<div id="info">loading...</div>
<script src="http://www.youtube.com/player_api"></script>
<script>
var info = document.getElementById('info');
function onYouTubePlayerAPIReady() {
var player = new YT.Player('player', {
javax.persistence.EntityNotFoundException: Unable to find com.gangfive.sima.ejb.Nutricionista with id 88org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handleEntityNotFound(Ejb3Configuration.java:155)org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:261)org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:175)org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:285)org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:185)com.gangfive.sima.ejb.Nutricionista_$$_javassist_7.getId(Nutricionista_$$_javassist_7.java)com.gangfive.sima.pojo.UsuarioPOJO.<init>(UsuarioPOJO.java:28)com.gangfive.sima.pojo.NutricionistaPOJO.<init>(NutricionistaPOJO.java:26)com.gangfive.sima.pojo.RetoPOJO.setNutricionista(RetoPOJO.java:161)com.gangfive.sima.pojo.RetoPOJO.<init>(RetoPOJO.java:48)com.gangfive.sima.controllers.RetosController.findByUsuario(RetosController.java:
rsync -avz --delete Music/ /media/andres/iwayo/music/
@KaeruCT
KaeruCT / c.js
Created February 11, 2014 18:35
// six(dividedBy(two())) == 3
var self = this;
['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'].forEach(function (el, i) {
self[el] = (function (i) {
return function (op) {
return op ? op(i) : i;
};
}(i));
});
@KaeruCT
KaeruCT / noise.py
Created January 8, 2014 19:33
./noise.py | aplay --channels=2 --rate=22500
#!/usr/bin/env python2
# ./noise.py | aplay --channels=2 --rate=22500
import sys
import math
import random
TEMPO=1000
def p(i):
(function (exports, undefined) {
var baseUrl,
resourceMap,
type;
exports.ub = {
init: function (options) {
baseUrl = options.baseUrl;
type = options.type;
resourceMap = options.resourceMap;