Skip to content

Instantly share code, notes, and snippets.

View nektro's full-sized avatar
🌻
if you know, you know

Meghan Denny nektro

🌻
if you know, you know
View GitHub Profile
get-childitem * | foreach { rename-item -LiteralPath $_ $_.Name.Replace("", "") }
@nektro
nektro / bs4-accordion.html
Created October 11, 2017 00:34
Bootstrap 4 Accordion Custom Element w/ Corgi Example
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<script defer src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script defer src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
<template id="template-bs4-accordion-item">
<div class="card">
<div class="card-header" role="tab" id="headingOne">
<h5 class="mb-0">
<a data-toggle="collapse"
@nektro
nektro / index.mjs
Last active September 12, 2018 21:45
cheers.cz downloader
// @author Meghan#2032 <https://me.nektro.net/>
//
//
import fetch from "node-fetch";
//
import path from "path";
import fs from "fs";
import https from "https";
//
const __dirname = path.resolve('');
@nektro
nektro / bikeData.js
Created September 17, 2018 21:15 — forked from dakoop/bikeData.js
citibike-jul-2018
// citi bike data for each day of July 2018
// divided into age ranges (10-19 through 130-139)
export const bikeData = [[448, 12345, 13173, 13347, 4086, 1588, 247, 15, 2, 1, 5, 4, 5],
[475, 14679, 18530, 14885, 7118, 2476, 407, 26, 4, 2, 27, 0, 6],
[461, 13913, 17434, 13768, 6581, 2352, 326, 29, 4, 2, 8, 1, 5],
[544, 12206, 13798, 15283, 4443, 1725, 301, 23, 1, 5, 34, 3, 6],
[509, 14551, 18526, 15951, 6918, 2547, 385, 29, 4, 6, 33, 4, 13],
[479, 12760, 15925, 12393, 5594, 1959, 321, 17, 7, 5, 40, 4, 3],
[610, 15550, 17702, 19254, 5381, 1967, 380, 21, 18, 2, 20, 2, 11],
@nektro
nektro / yarn-error.log
Created October 15, 2018 05:57
`yarn add integer` error log
Arguments:
C:\Program Files\nodejs\node.exe C:\Program Files (x86)\Yarn\bin\yarn.js add integer
Yarn version:
1.5.1
Node version:
10.8.0
Platform:
@nektro
nektro / nyan.txt
Last active November 8, 2018 06:03
▒▒▒▒▒▒▒█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒█░▒▒▒▒▒▒▒▓▒▒▓▒▒▒▒▒▒▒░█▒▒▒▒▒▒▒
▒▒▒▒▒▒▒█░▒▒▓▒▒▒▒▒▒▒▒▒▄▄▒▓▒▒░█░▄▄▒▒▒▒
▒▒▄▀▀▄▄█░▒▒▒▒▒▒▓▒▒▒▒█░░▀▄▄▄▄▄▀░░█▒▒▒
▒▒█░░░░█░▒▒▒▒▒▒▒▒▒▒▒█░░░░░░░░░░░█▒▒▒
▒▒▒▀▀▄▄█░▒▒▒▒▓▒▒▒▓▒█░░░█▒░░░░█▒░░█▒▒
▒▒▒▒▒▒▒█░▒▓▒▒▒▒▓▒▒▒█░░░░░░░▀░░░░░█▒▒
▒▒▒▒▒▄▄█░▒▒▒▓▒▒▒▒▒▒▒█░░█▄▄█▄▄█░░█▒▒▒
▒▒▒▒█░░░█▄▄▄▄▄▄▄▄▄▄█░█▄▄▄▄▄▄▄▄▄█▒▒▒▒
▒▒▒▒█▄▄█░░█▄▄█░░░░░░█▄▄█░░█▄▄█▒▒▒▒▒▒
⠀ ⠰⡿⠿⠛⠛⠻⠿⣷
⠀⠀⠀⠀⠀⠀⣀⣄⡀⠀⠀⠀⠀⢀⣀⣀⣤⣄⣀⡀
⠀⠀⠀⠀⠀⢸⣿⣿⣷⠀⠀⠀⠀⠛⠛⣿⣿⣿⡛⠿⠷
⠀⠀⠀⠀⠀⠘⠿⠿⠋⠀⠀⠀⠀⠀⠀⣿⣿⣿⠇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠁
⠀⠀⠀⠀⣿⣷⣄⠀⢶⣶⣷⣶⣶⣤⣀
⠀⠀⠀⠀⣿⣿⣿⠀⠀⠀⠀⠀⠈⠙⠻⠗
⠀⠀⠀⣰⣿⣿⣿⠀⠀⠀⠀⢀⣀⣠⣤⣴⣶⡄
⠀⣠⣾⣿⣿⣿⣥⣶⣶⣿⣿⣿⣿⣿⠿⠿⠛⠃
⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄
@nektro
nektro / userstyle.css
Created December 11, 2018 02:01
dev.to_dark_mode
.container, .container .body {
background-color: #333;
color: #eee;
}
.single-comment-node .details {
background-color: #2c2c2c;
}
.single-comment-node .details a,
.ltag_github-liquid-tag .issue-title,
.container .article-actions button .reaction-number,
@nektro
nektro / wallhaven.cc.js
Last active December 11, 2018 07:51
wallhaven.cc scraper
// @author Meghan#2032 <https://nektro.net/>
//
//
const path = require("path");
const fs = require("fs");
const https = require("https");
//
https.globalAgent.maxSockets = 25;
//
function main()
<?php
/**
* A little php script to accept images and make folders based on the hash,
* with a bonus _ folder at the end to detect if collisions occur.
*
* For example, using a form on this page would convert the following image
* https://dev.nektro.net/assets/nektro.png
* http://localhost/imgh/cdn/89/9e/84/39/49/12/16/7a/06/c7/b1/ae/c5/18/e5/3b/d7/8e/b6/a5/eb/7d/29/9e/cf/fa/ec/63/51/d8/19/1b/_0/c.png
*/
$home_dir = '/imgh/';