Skip to content

Instantly share code, notes, and snippets.

<?php
//
// Desk.com Single Access Token API Example
//
// 1) Copy this file to the root of your webserver and change the $my_desk_url variable to point to your desk.com hostname
// 2) Go to https://[yoursite].desk.com/admin/settings/api-applications and create an API Application
// 3) Copy the consumer key & secret on the listing page after you create your API Application
// 4) Click the "Your Access Token" link to get your single access token & secret
// 5) Copy your single access token & secret and paste it into the appropriate variable in this file
//
@jsiesquen
jsiesquen / wtf.js
Created October 21, 2016 04:58 — forked from MichalZalecki/wtf.js
/* VT100 terminal reset (<ESC>c) */
console.log('\033c');
/* numbers comparations */
> '2' == 2
true
> '2' === 2
@jsiesquen
jsiesquen / prestashop.conf
Created May 30, 2018 23:02 — forked from julienbourdeau/prestashop.conf
PrestaShop Nginx Configuration
server {
listen 80;
listen [::]:80; #Use this to enable IPv6
server_name www.example.com;
root /var/www/prestashop17;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
index index.php index.html;
#!/usr/bin/python
# -*- coding: utf-8 -*-
""" DMLogger """
import tkinter as tk
import tkinter.scrolledtext as tkscrolledtext
import http.server as httpserver
import _thread as thread
import sqlite3
import json
from urllib import parse
@jsiesquen
jsiesquen / webserver.py
Created September 27, 2018 15:12 — forked from MarkusHackspacher/webserver.py
Python Webserver GUI
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Webserver für Python
03.01.2014 MH Quelltext für Python 2.7 und 3.x
30.05.2013 MH Quelltext nach PEP8 überprüft
http://creativecommons.org/licenses/by-nc-sa/3.0/de/
"""
try:
import Tkinter as tk
@jsiesquen
jsiesquen / vtexCheckoutEvents.js
Created April 28, 2019 03:19 — forked from rgoytacaz/vtexCheckoutEvents.js
Examples of events in VTEX Checkout
(function(){
$('#shipping-data').on('enable.vtex', function(){
console.log('Shipping Data just opened.');
});
$(window).on('orderFormUpdated.vtex', function(ev, orderForm) {
console.log('Order Form updated.');
});