Skip to content

Instantly share code, notes, and snippets.

View JacksonBates's full-sized avatar
🅾️
Days Since Last Bug

Jackson Bates JacksonBates

🅾️
Days Since Last Bug
View GitHub Profile
# A silly mini text adventure to teach my 8 year old Python
import random
import time
def main():
outcome = random.randint(1,2)
print("You are an explorer.")
time.sleep(3)
print("There is a cave ahead...")
time.sleep(3)
import​ ​{
​  ​RadioSelect​,
​  ​Text​,
​}​ ​from​ ​"components"​;
 
​export​ ​default​ ​function​ ​FormItem​(​{data})​ ​{
​  ​const​ ​itemType​ ​=​ ​data​.​item_type​;
​  ​const​ ​componentMap​ ​=​ ​{
​    ​radio​: ​RadioSelect​,
​    ​text​: ​Text​, 
#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=oNn9D_8d4zQ
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def lomo_opt(image, drawable, direction):
pdb.gimp_image_undo_group_start(image)
#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=X0_a6U6PkCA
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def lomo(image, drawable):
pdb.gimp_image_undo_group_start(image)
#!/usr/bin/env python
# GIMP UI examples of options
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def ui_examples_1(int_var, float_var, string_var, value_var, color_var,
colour_var, image_var, layer_var, channel_var, drawable_var,
toggle_var, boolean_var):
#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=5Ld8Todog5s
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def extreme_unsharp_desaturation_options(image, drawable, radius, amount, mode):
pdb.gimp_image_undo_group_start(image)
threshold = 0
#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=uSt80abcmJs
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def extreme_unsharp_desaturation(image, drawable):
pdb.gimp_image_undo_group_start(image)
radius = 5.0
#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=nmb-0KcgXzI
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def NAME_OF_MAIN_FUNCTION(image, drawable):
# function code goes here...
#!/usr/bin/env python
# Tutorial available at:
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def NAME_OF_MAIN_FUNCTION(image, drawable):
# function code goes here...
#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=nmb-0KcgXzI
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def hello_warning(image, drawable):
# function code goes here...
pdb.gimp_message("Hello, world!")