Skip to content

Instantly share code, notes, and snippets.

View dzt's full-sized avatar
🛹

Peter Soboyejo dzt

🛹
  • Worcester, Massachusetts
View GitHub Profile
<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/docs/4.0/assets/img/favicons/favicon.ico">
<title>Offcanvas template for Bootstrap</title>
<link rel="canonical" href="https://getbootstrap.com/docs/4.0/examples/offcanvas/">
@dzt
dzt / main.c
Created March 5, 2020 05:39
HW2 CS2303
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
typedef struct Marker {
int x;
int y;
} Marker;
@dzt
dzt / routes.js
Last active October 25, 2019 14:08
Kleidi Bot Verification Endpoints
import request from 'request';
import { machineIdSync } from 'node-machine-id';
import CryptoJS, { AES } from 'crypto-js';
const encryptData = (key, data) => {
if (data == null || data === '') return null;
return AES.encrypt(data, key).toString();
};
const decryptData = (key, data) => {
@dzt
dzt / bundles.njk
Created May 15, 2019 05:03
Pagination using MongoDB, Nunjucks, and Express
<small class="d-block text-right mt-3" style="padding-top: 30px;padding-bottom: 30px;">
{% set current = current|int %}
{% set pages = pages|int %}
{% if pages > 0 %}
<ul class="pagination text-center" style="position: absolute;left:50%;transform: translate(-50%,-50%);">
{% if current == 1 %}
<li class="page-item disabled"><a class="page-link">First</a></li>
{% else %}
<li class="page-item"><a class="page-link" href="/admin/bundles/1">First</a></li>
{% endif %}
@dzt
dzt / ys.html
Created March 17, 2018 16:19
YeezySupply Variant Parsing
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>YEEZY SUPPLY</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, height=device-height, minimum-scale=1.0, user-scalable=1">
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<![endif]--><!--
..
@dzt
dzt / DataSet.java
Last active March 14, 2018 01:12
Chapter 10 - Recursion
public class DataSet {
private int[] values;
private int first;
private int last;
public DataSet(int[] values, int first, int last) {
this.values = values;
this.first = first;
this.last = last;
@dzt
dzt / instructions.txt
Created March 4, 2018 06:10
Guide for Setting up Shopify Monitor v3 on the Raspberry Pi
On The Raspberry Pi (After Installation of Ubuntu Mate)
sudo systemctl restart network-manager
sudo service ssh enable
—————————————————
On your Mac or Windows Command Line
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Name Description Link Image
Faux Fur Repeater Bomber Faux fur with contrast faux fur pattern and jacquard logo viscose lining. Full zip closure with hand pockets at lower front. http://www.supremenewyork.com/previews/springsummer2018/jackets/faux-fur-repeater-bomber http://d17ol771963kd3.cloudfront.net/142690/zo/ncu1RqIlwn9.jpg
Nylon Turnout Jacket Nylon with full zip closure and lobster hook storm placket. Hand pockets at lower front and embroidered logo on chest. http://www.supremenewyork.com/previews/springsummer2018/jackets/nylon-turnout-jacket http://d17ol771963kd3.cloudfront.net/142768/zo/wrdHEqpS23k1.jpg
The Yard Hooded Work Jacket All cotton canvas with printed pattern and quilted cotton lining. Full zip closure with hand pockets at lower front. Original artwork by Lee Quinones. http://www.supremenewyork.com/previews/springsummer2018/jackets/the-yard-hooded-work-jacket http://d17ol771963kd3.cloudfront.net/142513/zo/exUBA9hUcKo.jpg
Patches Denim Trucker Jacket All cotton denim with button front closure
1.)
float[] a = new float[24];
int[] b = new int[500];
double[] c = new double[50];
char[] d = new char[10];
2.)
final int CLASS_SIZE = 0;
double[] QuizAvg = new double[CLASS_SIZE];
3.)
1 3 -2
17 6 11
4 2 2
@dzt
dzt / 2cap.js
Created November 21, 2017 05:08
undefeated raffle script (use node undefeated.js to run it)
var request = require('request');
var getToken = function(sitekey, key, callback) {
var twoCapID;
var checkCaptcha = function() {
request({
url: 'http://2captcha.com/res.php',
method: 'get',
qs: {
key: key,