This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (new URLSearchParams(window.location.search).get('portal')) { | |
| // <create start portal> | |
| // Create portal group to contain all portal elements | |
| const startPortalGroup = new THREE.Group(); | |
| startPortalGroup.position.set(SPAWN_POINT_X, SPAWN_POINT_Y, SPAWN_POINT_Z); | |
| startPortalGroup.rotation.x = 0.35; | |
| startPortalGroup.rotation.y = 0; | |
| // Create portal effect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| // | |
| // AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio) | |
| // | |
| // File: twitterFollowerCuratorBot.php | |
| // | |
| // Created: May 2021 | |
| // License: MIT | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Karen Bot by @levelsio | |
| // | |
| // ask Claude Code or Cursor to adapt it to your city | |
| // mine is for Lisbon in Portuguese but it should work with any city and any language! | |
| // save it as council.php and add a Nginx route /council on your server to use it | |
| // make sure to add /council?key= and set a key below to use it privately | |
| // | |
| // more info: https://x.com/levelsio/status/2009011216132526407?s=20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Maker Link by @levelsio --> | |
| <!-- MIT License --> | |
| <style> | |
| body { | |
| background:#333; | |
| } | |
| .levelsio-by { | |
| font-family:"Helvetica Neue",sans-serif; | |
| right:0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Building an MVP? | |
| # Need a quick database you can set up in seconds? | |
| # What about JSON? | |
| # | |
| # by @levelsio (with help from @marckohlbrugge, @oskarth, @maxdeviant and @kumailht) | |
| # JS | |
| db=[] | |
| fs=require('fs') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| // set price | |
| $newPricePlanId='price_1NsRt5Inbsdfsfddsf'; | |
| $newPriceMonthly=39; | |
| $i=1; | |
| foreach($users as $user) { | |
| if(!$user['stripe_customer_id']) { | |
| echo "No Stripe customer id, maybe update in db?"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| .git-graph { | |
| text-align: left; | |
| line-height: 1; | |
| } | |
| .git-graph-row { | |
| clear: both; | |
| text-align: left; | |
| } | |
| .git-graph-cell { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| # MIT license, do whatever you want with it | |
| # | |
| # This is my invoice.php page which I use to make invoices that customers want, | |
| # with their address on it and which are easily printable. I love Stripe but | |
| # their invoices and receipts were too wild for my customers on Remote OK | |
| # | |
| require_once(__DIR__.'/../vendor/autoload.php'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| // <readme> | |
| /* | |
| This is a lite version of Olark's and Intercom's functionality (without the chat part). | |
| It lets you get feedback from users on your site to your email. | |
| And you won't have to rely on another company anymore! | |
| #killyourdependencies |
NewerOlder