Skip to content

Instantly share code, notes, and snippets.

@ir-g
ir-g / fkids_rls.user.js
Last active May 21, 2016 13:00
rls.fkids.net userscript
// ==UserScript==
// @name rls.fkids.net homepage userscript
// @match http://rls.fkids.net
// @match http://rls.fkids.net/index.php
// @grant none
// ==/UserScript==
(function() {
for(var i in document.getElementById("page-body").children[1].children){
var curTag = document.getElementById("page-body").children[1].children[i];
<?php
// Docs are here: http://phpdave.com/MyBBIntegrator/Coding_Help#function_getUser
define('IN_MYBB', NULL);
require_once './forum/global.php'; // Or other path to MyBB global.php.
require_once './class.MyBBIntegrator.php'; // Or other relevant path.
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config)l
$user = false;
// getUser(0) gets curent user, any other number gets data about the user with that particular record ID
if($MyBBI->isLoggedIn()) $user = $MyBBI->getUser(0);
echo '<br>';
@ir-g
ir-g / task1.coffee
Last active November 17, 2015 14:08
Nested loop tasks
linelimit = 10
charArr = []
for x in [1..linelimit]
z = ""
for y in [1..x]
z+="*"
charArr.push z
console.log " *"
for i in charArr
buf1 = i
@ir-g
ir-g / task1.coffee
Last active November 17, 2015 13:33
For loop tasks
for i in [1..100] by 2 then console.log i+1
# edit all changeable information: background images for those that will change often, titles, descriptions, players of the month
# How backgrounds could be organised
backgrounds:
- "http://i.imgur.com/aw58hKo.gif"
- "http://i.imgur.com/aw58hKo.gif"
- "http://i.imgur.com/bQUNrEY.jpg"
# Sections on the home page
sections:
- title: "JC2MP - RLS"
description: "Join RLS today"
@ir-g
ir-g / task1.coffee
Last active November 3, 2015 14:20
If Statement Tasks
###
A text box, or other control, can be used to enter the temperature of the room.
Below 16 degrees should result in a message, or a label, saying it is too cold to work.
###
temp = prompt "Temp?"
if temp < 16 then alert "Too cold" else alert "All good"
@ir-g
ir-g / theme.html
Created October 29, 2015 12:57
My new tumblr theme
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Custom Variables -->
<meta name="image:Logo" content=""/>
<meta name="text:Colophon" content="&copy; Isaac Reid-Guest"/>
<meta name="color:Background" content="#fff"/>
<meta name="color:Text" content="#444"/>
<meta name="color:Link" content="#09b"/>
@ir-g
ir-g / theme.html
Created October 29, 2015 11:57
My old tumblr theme...
<!DOCTYPE html>
<!--
Theme: Ashley v0.6
Author: Jxnblk [http://jxnblk.com]
For: Tumblr [http://tumblr.com/]
Terms: Protected under Creative Commons. [http://creativecommons.org/licenses/by-nc/3.0/]
-->
<html lang="en">
@ir-g
ir-g / 0_reuse_code.js
Last active September 14, 2015 15:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ir-g
ir-g / toggleSubscription.js
Last active August 29, 2015 14:20
A collection of tools for managing Steam Workshop subscriptions.
SubscribeItem();