Skip to content

Instantly share code, notes, and snippets.

View krishaamer's full-sized avatar
💭
:)

Kris Haamer krishaamer

💭
:)
View GitHub Profile
@krishaamer
krishaamer / gist:6dbab1b7a9e8b3efe72d13c21ee1fef0
Created November 27, 2023 16:56 — 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!
@krishaamer
krishaamer / ICS.php
Created April 15, 2022 08:46 — forked from jakebellacera/ICS.php
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
@krishaamer
krishaamer / rn-i18n-locale-identifiers.csv
Created February 21, 2022 06:55 — forked from ndbroadbent/rn-i18n-locale-identifiers.csv
React Native i18n Locale Identifiers
Locale Identifier Description
af Afrikaans
af-NA Afrikaans (Namibia)
af-ZA Afrikaans (South Africa)
agq Aghem
agq-CM Aghem (Cameroon)
ak Akan
ak-GH Akan (Ghana)
am Amharic
am-ET Amharic (Ethiopia)
@krishaamer
krishaamer / acf-php-to-json.php
Created January 26, 2022 09:13 — forked from ollietreend/acf-php-to-json.php
Convert Advanced Custom Fields Pro configuration from PHP to JSON.
<?php
/**
* Plugin Name: Convert ACF PHP to JSON
* Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON.
*/
namespace ConvertAcfPhpToJson;
/**
* Add submenu item under 'Custom Fields'
I am attesting that this GitHub handle krishaamer is linked to the Tezos account tz1SWnYksB92csFhauJbPt4eBcu32nkwyCoQ for tzprofiles
sig:edsigtnwjVthTAWHpbBP62GPpmM2nuimEDiteBvWMA2UkiMBBcx2t3wTkUNe65fR4ky3qGZmuQDbrLicnTTJ8ZJ7HL4JuBLhJcR
/**
* Create HTML list of pages.
*
* @since 1.0
* @uses Walker_Page
*/
class Rational_Walker_Page extends Walker_Page {
/**
* @see Walker_Page::start_lvl()
* @since 1.0
add_shortcode('register', function () {
if(!function_exists("pll_current_language"))
return;
if(pll_current_language() == "pt") {
$post = get_post(493);
$register_form_id = "tickets_pt";
} else {
$post = get_post(495);
Verifying that +krishaamer is my blockchain ID. https://onename.com/krishaamer
@krishaamer
krishaamer / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@krishaamer
krishaamer / Shadows
Created July 4, 2015 09:12
Shadow Effects for UITableView Cells
// GuestCellView.swift
import UIKit
import DynamicColor
class GuestCellView:UIView {
override func awakeFromNib() {
//applyCustomShadow(self)