Skip to content

Instantly share code, notes, and snippets.

View nirewen's full-sized avatar
:octocat:

Eduardo Londero nirewen

:octocat:
View GitHub Profile
@nirewen
nirewen / whitney.css
Last active December 5, 2022 21:13
reload discord whitney font
@font-face{
font-family:Whitney;
font-style:normal;
font-weight:300;
src:url(https://cdn.jsdelivr.net/gh/Overimagine1/old-discord-font/fonts/46933da896ba96126074286056614542.woff2) format("woff2")
}
@font-face{
font-family:Whitney;
font-style:italic;
font-weight:300;
@nirewen
nirewen / custom-notion.css
Last active May 10, 2022 21:21
A collection of custom Notion CSS that I use
/* wider popout */
:root {
--theme--page_preview-width: 1280px;
}
.notion-selectable {
max-width: 1980px !important;
}
/* move Add property to the right */
@nirewen
nirewen / README.md
Created April 20, 2022 14:46
Generate a Notion database with all days of the year

This is a simple Node.JS script to generate a .CSV file to merge with a previously created Notion database.

It's supposed to be used with a Habit Tracker of sorts. It generates all days of the specified year, naming each page "Day #".

It also includes the week day (sunday, monday, ...)

It's easier to generate this from a script, and then use Notion to add the rest, like all the habits and database relationships there.

Packages

@nirewen
nirewen / MOTD.java
Last active October 30, 2019 22:37
Simple MOTD center
package net.ehaqui.ehcore.utils;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration;
import java.util.List;
import java.util.Random;
public class MOTD {
@nirewen
nirewen / Player.js
Created October 27, 2018 21:36
A music player based on Eris
//"ty&": {"category": "Música", "dir": "commands/music/", "color": "red"},
const reload = require('require-reload')(require),
config = reload('../config.json'),
utils = reload('./utils.js'),
playlists = reload('../db/playlists.json'),
YTDL = require('ytdl-core');
class Player {
constructor(bot, guild) {
@nirewen
nirewen / erisPrototypes.js
Last active June 7, 2022 02:10
A list of helpful functions for my Eris bot
let Endpoints = require("eris/lib/rest/Endpoints");
Object.defineProperties(Eris.Client.prototype, {
fetchChannel: {
value: function(channelID) {
return this.requestHandler.request("GET", Endpoints.CHANNEL(channelID), true).then((channel) => {
if (channel.type === 0) {
return new Eris.TextChannel(channel, null, this.options.messageLimit);
} else if (channel.type === 1) {
return new Eris.PrivateChannel(channel, this);
} else if (channel.type === 2) {
//META{"name":"Compact_Account","description":"edits for that account thingy under the channels","author":"maple - Nirewen's Edit","version":"1.22"}*//{}
/* Original version: https://github.com/mrmaple240/betterdiscord-mini-themes/blob/master/CompactAccount.theme.css */
.account {
border-top: 1px solid rgba(180,180,180,.4) !important;
}
.account .avatar-small {
left: -10px;
width: 70px;
.status-online + .status-text {font-size: 0px;}
.status-online + .status-text:after {
content: var(--online-localstring);
font-size: 16px;
position: relative;
top: 3px;
}
.status-idle + .status-text {font-size: 0px;}
.status-idle + .status-text:after {
content: var(--idle-localstring);
//META{"name":"bottom_guilds","description":"puts the guilds on bottom","author":"Nirewen","version":"1.0"}*//{}
.friends-online, .guild-separator {
display: none;
}
.guilds-wrapper{
bottom: -64px;
transition: 500ms;
}
.user-settings-modal .settings-header {max-width: 60px;}
/* HEADER */
.user-settings-modal .tab-bar.SIDE .tab-bar-header {font-size: 0px;}
.user-settings-modal .tab-bar.SIDE .tab-bar-header:after {
content: '\e700';
font-family: 'Segoe MDL2 Assets';
font-size: 20px;