Skip to content

Instantly share code, notes, and snippets.

View jin0x's full-sized avatar
:octocat:
Working from home

John Leskas jin0x

:octocat:
Working from home
  • RSH Creative Web Studio LTD
  • Limassol, Cyprus
  • X @john_leskas
View GitHub Profile
@jin0x
jin0x / gist:28ff794e5419971590e07723473b2436
Created April 26, 2024 19:34 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
@jin0x
jin0x / conventional_commit_messages.md
Created September 5, 2022 09:13 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@jin0x
jin0x / barba-wp.js
Created May 13, 2020 13:03 — forked from apsolut/barba-wp.js
barbajs for wordpress
/*
* apsoluttheme
* transitionss
* Barba.Pjax.Dom.containerClass
* Barba.Pjax.Dom.currentHTML
* Barba.Pjax.Dom.wrapperId
* @URLtransitions.js http://barbajs.org/events.html
*/
@jin0x
jin0x / sliderExample.php
Created April 28, 2020 14:32 — forked from dajocarter/sliderExample.php
Example of using a slider with Glide.js and Scratch Theme for Wordpress + ACF
<?php if(have_rows('slides')): ?>
<div id="Glide" class="glide clearfix">
<div class="glide__arrows">
<!--
Options for arrow classes are: ion-chevron-left/right, ion-ios-arrow-left/right, ion-ios-arrow-back/forward.
Can also substitute <i></i> with text, e.g., Previous and Next.
-->
<button class="glide__arrow prev" data-glide-dir="<"><i class="ion ion-chevron-left"></i></button>
<button class="glide__arrow next" data-glide-dir=">"><i class="ion ion-chevron-right"></i></button>
;(function () {
/**
* Run function when customizer is ready.
*/
wp.customize.bind('ready', function () {
wp.customize.control('slug_select_control', function (control) {
/**
* Run function on setting change of control.
*/
control.setting.bind(function (value) {
@jin0x
jin0x / submenu-descrption.php
Created April 21, 2020 12:09 — forked from atsea/submenu-descrption.php
WordPress: add description to submenu
<?php
/**
* start_lvl and end_lvl
* How can I add parent menu description to my Wordpress menu?
* http://stackoverflow.com/questions/29251897/how-can-i-add-parent-menu-description-to-my-wordpress-menu
*
* start_el
* * How to add menu descriptions to wordpress theme
* http://www.wpbeginner.com/wp-themes/how-to-add-menu-descriptions-in-your-wordpress-themes/
*/
<?php
function listing_post_type() {
$labels = array(
'name' => _x( 'Listing', 'Post Type studio', 'text_domain' ),
'singular_name' => _x( 'Listing', 'Post Type studio', 'text_domain' ),
'menu_name' => __( 'Listings', 'text_domain' ),
'parent_item_colon' => __( 'Parent Listing:', 'text_domain' ),
'all_items' => __( 'All Listings', 'text_domain' ),
'view_item' => __( 'View Listing', 'text_domain' ),
'add_new_item' => __( 'Add New Listing', 'text_domain' ),
@jin0x
jin0x / index.html
Created April 12, 2020 14:37 — forked from evwltrs/index.html
Redirect Countdown timer with SVG circle
<head>
<script type="text/javascript">
// Total seconds to wait
var seconds = 10;
function countdown() {
seconds = seconds - 1;
if (seconds < 0) {
// Chnage your redirection link here
#!/usr/bin/python
"""
advanced-flood.py
@author: Randall Degges
@email: rdegges@gmail.com
@date: 11-20-09
This program floods the specified phone number and spoofs caller ID making it
@jin0x
jin0x / docker-compose.yml
Created December 8, 2019 19:52 — forked from drdogbot7/docker-compose.yml
Wordpress Docker Compose with CLI - official images
version: '2'
services:
db:
image: mysql:5.7
volumes:
- "./.data/db:/var/lib/mysql"
ports:
- "[YOUR_DESIRED_SQL_PORT]:3306"
environment:
MYSQL_ROOT_PASSWORD: wordpress