This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JSONLoader.swift | |
// Load JSON from file and data objects effortlessly | |
// | |
// Created by Nick on 9/22/19. | |
// Copyright © 2019 Nick. All rights reserved. | |
// | |
import Foundation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Code is poetry | |
// | |
// Created by Nick aka black-dragon74 | |
// | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
class PageViewIndicator extends AnimatedWidget { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Regex to fix DB is: "s/<script[\s\S]*?>[\s\S]*?<\/script>//g" | |
totalInfections=0 | |
filesProcessed=0 | |
echo "Welcome to lovegreenpencils malware fixer by black-dragon74" | |
echo "This fix is divided into 3 phases." | |
echo "Phase 1 fixes the \`beckup\` files." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.blackdragon74; | |
import java.util.Scanner; | |
class Solution { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
int N = scan.nextInt(); | |
int M = scan.nextInt(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def find_next_empty(puzzle): | |
for r in range(9): | |
for c in range(9): | |
if puzzle[r][c] == 0: | |
return r, c | |
return None, None | |
def is_valid(guess, puzzle, row, col): | |
# First check the rows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <openssl/sha.h> | |
#include <openssl/evp.h> | |
#if OPENSSL_VERSION_NUMBER < 0x10100000L | |
#define EVP_MD_CTX_new EVP_MD_CTX_create | |
#define EVP_MD_CTX_free EVP_MD_CTX_destroy | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# A nifty utility that prints the PWD in a shortened format. | |
# Place this file in your PATH by removing the .sh extension | |
# If path is: /Our/Custom/path/to/dir | |
# It will output: /O/C/p/t/dir | |
# For directories inside $HOME, ~ is used. | |
path="${1:-$(</dev/stdin)}" | |
home="$HOME" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for f in *.epub; do | |
if [ -d "$f" ]; then | |
echo "Converting: $f" | |
cd "$f" | |
find . -name "iTunesMetadata*.plist" -delete 2>/dev/null | |
zip -0X "../tmp.epub" mimetype >/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Code is poetry; script by black-dragon74 | |
Use this script to guess the encryption key for your JioFiber router. | |
You need to generate a backup and provide it as an input to this script. | |
The script will provide you the encryption key if it is successful, use ONLY that key |