Skip to content

Instantly share code, notes, and snippets.

View djorborn's full-sized avatar
🏠
Will Work For Fun

wallclocks djorborn

🏠
Will Work For Fun
  • Maryland
View GitHub Profile
@djorborn
djorborn / index.html
Created July 18, 2017 19:51
my portfolio app2.0
<!------------------------------- NAVBAR-------------->
<div class="topnav" id="navbar" >
<a href="#home" class="fade btns" onclick="changePage(1)">home</a>
<a href="#works" class="fade btns" onclick="changePage(2)">works</a>
<a href="#contact" class="fade btns" onclick="changePage(3)">contact</a>
<a href="javascript:void(0);" class="icon" onclick="navOut()" >&#9776;</a>
</div>
<!--==============----------- PAGE ONE ------------------==========-->
<div class="box page fade" id="one">
<h1 class="header" id="p">Welcome to me page</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@djorborn
djorborn / close-modal-by-click-off-of-it.markdown
Last active March 7, 2018 02:40
Close Modal By Click Off Of It
@djorborn
djorborn / ajax.js
Created March 24, 2018 00:02
My ajax request helper, like the one from JQUERY just very simple
function ajax(url, options) {
options.url = url;
var xhr = new XMLHttpRequest()
xhr.open((!options.type ? 'GET': options.type), options.url, true)
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
xhr.onreadystatechange = function () {
if (this.readyState == 4) {
options.success(this.response)
@djorborn
djorborn / layout.pug
Created April 9, 2018 18:18
Send Object to a script tag using Pugjs, For the purpose of using the object with Vuejs
<!DOCTYPE html>
html(lang="en")
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(http-equiv="X-UA-Compatible", content="ie=edge")
title Pug Vue Play
script(src="js/vue.js")
body
h1 Pug Vuejs Play
@djorborn
djorborn / get-battery.c
Created May 28, 2019 22:53
Print Battery Percent and status to stdout in C and shell
/* get-battery - print battery status and percent to stdout
*
* Orignal Source from http://dwm.suckless.org/status_monitor/batterystatus.c
* edited by djorborn at gmail dot com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
@djorborn
djorborn / roomservice.xml
Created May 25, 2021 02:03
roomservice.xml for sofiap moto g stylus
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- Device -->
<project name="trinket-common/device_motorola_sofiap" path="device/motorola/sofiap" remote="github" revision="staging/lineage-18.1" />
<project name="trinket-common/device_motorola_sm6125-common" path="device/motorola/sm6125-common" remote="github" revision="staging/lineage-18.1" />
<!-- Vendor -->
<project name="trinket-common/vendor_motorola" path="vendor/motorola" remote="github" revision="staging/lineage-18.1" />
<!-- Kernel -->
@djorborn
djorborn / klipper_void_linux.md
Last active November 23, 2021 22:28
Klipper & OctoPrint for Void Linux

This is a guide for installing Klipper and Octoprint on Void Linux

Installing Klipper

I am assuming you have a printer.cfg file in your home directory, your printer is connted via USB and you know kinda how to use a terminal.

I have made a new user pi, to keep things as close to the raspberry-pi setup as I can. I recommend you do this as well.

To make a new user