Skip to content

Instantly share code, notes, and snippets.

💭
I am a teapot.

Mathias Nordskog Nordskog

💭
I am a teapot.
  • Norway
Block or report user

Report or block Nordskog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Nordskog
Nordskog / instructions.md
Last active Apr 25, 2019
DiscordIRCd instructions
View instructions.md

DiscordIRCd is a nodejs app that will create a local irc server you can connect to that pipes through messages from Discord.
This guide assumes you are on windows, though the steps would basically be the same on linux.

General steps:

  1. Get your Discord token
  2. Install node
  3. Download DiscordIRCd
  4. Configure DiscordIRCd
  5. Setup DiscordIRCd
  6. Run DiscordIRCd
@Nordskog
Nordskog / MainActivity.java
Created May 1, 2018
BranchingChoiceExample
View MainActivity.java
package com.example.choiceapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Adapter;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
@Nordskog
Nordskog / wetlandpersist.md
Created Feb 24, 2018
wetland update after persist
View wetlandpersist.md

Code

let wetland : Wetland.Wetland = RFY.wetland;
let manager : Wetland.Scope = wetland.getManager();

//Instantiate entity, persist
let author = new entities.Author();
manager.persist(author);

//Set initial value
You can’t perform that action at this time.