This file contains 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
# 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) |
This file contains 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
import { | |
RadioSelect, | |
Text, | |
} from "components"; | |
export default function FormItem({data}) { | |
const itemType = data.item_type; | |
const componentMap = { | |
radio: RadioSelect, | |
text: Text, |
This file contains 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
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=oNn9D_8d4zQ | |
# Feedback welcome: [email protected] | |
from gimpfu import * | |
def lomo_opt(image, drawable, direction): | |
pdb.gimp_image_undo_group_start(image) |
This file contains 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
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=X0_a6U6PkCA | |
# Feedback welcome: [email protected] | |
from gimpfu import * | |
def lomo(image, drawable): | |
pdb.gimp_image_undo_group_start(image) |
This file contains 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
#!/usr/bin/env python | |
# GIMP UI examples of options | |
# Feedback welcome: [email protected] | |
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): |
This file contains 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
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=5Ld8Todog5s | |
# Feedback welcome: [email protected] | |
from gimpfu import * | |
def extreme_unsharp_desaturation_options(image, drawable, radius, amount, mode): | |
pdb.gimp_image_undo_group_start(image) | |
threshold = 0 |
This file contains 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
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=uSt80abcmJs | |
# Feedback welcome: [email protected] | |
from gimpfu import * | |
def extreme_unsharp_desaturation(image, drawable): | |
pdb.gimp_image_undo_group_start(image) | |
radius = 5.0 |
This file contains 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
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=nmb-0KcgXzI | |
# Feedback welcome: [email protected] | |
from gimpfu import * | |
def NAME_OF_MAIN_FUNCTION(image, drawable): | |
# function code goes here... | |
This file contains 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
#!/usr/bin/env python | |
# Tutorial available at: | |
# Feedback welcome: [email protected] | |
from gimpfu import * | |
def NAME_OF_MAIN_FUNCTION(image, drawable): | |
# function code goes here... | |
This file contains 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
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=nmb-0KcgXzI | |
# Feedback welcome: [email protected] | |
from gimpfu import * | |
def hello_warning(image, drawable): | |
# function code goes here... | |
pdb.gimp_message("Hello, world!") |