Skip to content

Instantly share code, notes, and snippets.

View dmenisdev's full-sized avatar

Dmenis dmenisdev

  • vdBit
  • World
View GitHub Profile
@EkremGungormez
EkremGungormez / gist:2717527
Created May 17, 2012 08:57
Editable Alv update database table
REPORT ZBC0818_EDITABLEALV_ALINAN.
* Data declarations
DATA : itab TYPE STANDARD TABLE OF 'Database Table Name',"Output table
i_fieldcat TYPE STANDARD TABLE OF lvc_s_fcat,"Field catalog
i_modified TYPE STANDARD TABLE OF 'Database Table Name',"For getting modified rows
i_selected_rows TYPE lvc_t_row,"Selected Rows
w_selected_rows TYPE lvc_s_row,
w_modified TYPE 'Database Table Name',
wa TYPE 'Database Table Name',
w_variant TYPE disvariant,
@jhgaylor
jhgaylor / through_relationships.py
Last active September 24, 2024 10:11
Example of using a through model in Django and filtering by a value on the custom through model.
class A(models.Model):
things = models.ManyToManyField("B", through=ThroughModel)
class B(models.Model):
text = models.TextField()
class ThroughModel(models.Model):
a = models.ForeignKey(A)
b = models.ForeignKey(B)
extra = models.BooleanField()
@arthuralvim
arthuralvim / csv2djfixtures.py
Created August 19, 2015 21:05
Convert .csv to Django fixtures.
# -*- coding: utf-8 -*-
# requirements
# pip install unipath
# pip install python-decouple
from os.path import join
from unipath import Path
from decouple import config
import csv
@levelsio
levelsio / gist:5bc87fd1b1ffbf4a705047bebd9b4790
Last active November 5, 2024 18:04
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!