Skip to content

Instantly share code, notes, and snippets.

@drunkensouljah
drunkensouljah / wGet Kopie.lua
Last active December 15, 2015 08:49
wGet für Computercraft. Original Code von Epsen und Matthew DiBernardo
--[[
wget
A program adapted from HttpTest, by Epsen:
http://www.computercraft.info/forums2/index.php?/topic/82-121-httptest-v13/page__hl__http__fromsearch__1
Credit for the original work goes to him. Additional modifications have been
made to the file to make it suitable for my own purposes.
@drunkensouljah
drunkensouljah / bildschirmschoner.lua
Created March 25, 2013 22:17
Sterne Bildschirmschoner für Computercraft (Monitor muss angeschlossen sein). Original Code stars by Abdiel
-- Sternenfeld
-- Windows 98 Bildschirmschoner Emulator auf einem ComputerCraft Monitor.
--
-- Mindestens 1 Bildschirm muss mit dem Computer verbunden sein.
-- Um Bildschirmschoner zu beenden STRG + T kurz gedrueckt halten.
--
-- Arguments:
-- sterne [ANZAHL] [GESCHWINDIGKEIT] [FARBE] [ZEICHEN]
--
-- ANZAHL - Anzahl der Sterne (normal 25).
@drunkensouljah
drunkensouljah / json.lua
Created April 8, 2013 20:15
JSON4Lua: JSON encoding / decoding support for the Lua language. Author: Craig Mason-Jones
-----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.40
-- This module is released under the MIT License (MIT).
-- Please see LICENCE.txt for details.
--
-- USAGE:
@drunkensouljah
drunkensouljah / browser.lua
Created April 24, 2013 17:12
Computercraft Mouse File Browser by Stiepen irc(Kilobyte), Cruor, BigSHinyToys
--[[
Mouse File Browser
by:
Stiepen irc(Kilobyte)
Cruor
BigSHinyToys
note: send link to nightin9ale on CC forums
--]]
@drunkensouljah
drunkensouljah / index.html
Last active June 11, 2019 20:20
html 5 template
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="author" content="" />
<meta name="copyright" content="" />
<meta name="robots" content="index, follow" />
@drunkensouljah
drunkensouljah / headerbild.php
Last active June 10, 2019 20:20
[Bild Tageszeitabhängig] anderes bild zu verschiedenen Uhrzeiten #php #webdev
<?php
$h = //... stunden angabe
if ($h == '0') $bild = 'gutenacht.gif';
if ($h == '12') $bild = 'mittag.jpg';
if ($h == '16') $bild = 'nachmittag.gif';
print "<IMG SRC="\http://www.server.de/img/$bild\" BORDER=0 ALT=\"\">";
@drunkensouljah
drunkensouljah / bootstrap suche
Created February 12, 2015 19:18
bootstrap google suche
<!-- Suche -->
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-default" type="button"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
</span>
<form method="get" action="http://www.google.de/search" name="googlesearch">
<input type="text" class="form-control" placeholder="Suchen..." name="q">
</div><!-- /input-group -->
<?php
$ip = $_SERVER["REMOTE_ADDR"];
echo "$ip";
?>
@drunkensouljah
drunkensouljah / uhrzeit.html
Created November 8, 2015 21:12
Uhrzeit auf homepage ausgeben (Javascript)
<!DOCTYPE html>
<html>
<head>
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
@drunkensouljah
drunkensouljah / weiterleitung.html
Created November 11, 2015 21:33
weiterleitung
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0;url=pages/index.html">
<title>Seitentitel</title>
<script language="javascript">
window.location.href = "pages/index.html"
</script>
</head>
<body>