Skip to content

Instantly share code, notes, and snippets.

# ale rimoldiaoloe

• Sort options
Last active Jan 3, 2020
game ideas for the labadoo scratch day
View labadoo-scratch.md

# scratch cards for the labadoo day

on top of using

we could create sets of cards specific to the creation of a few games or make sure that a card exist for each step of the game.

• pong
Created Nov 20, 2019
View playground-mdn-promises.js
 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises // https://scotch.io/tutorials/javascript-promises-for-dummies // https://www.youtube.com/watch?v=s6SH72uAn3Q // 1. // doSomething(function(result) { // doSomethingElse(result, function(newResult) { // doThirdThing(newResult, function(finalResult) {
Last active Feb 22, 2019
instructions by aiena for compiling scribus on windows
View scribus-add-plugin-windws-alpha.md

# Adding a plugin to the the Visual Studio project

• In Visual Studio create a GUID of type registry with Tools > Create GUID

• in `win32/msvc2015/Scribus.sln` add after the last plugin (Project):

``````Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pluginname", "pluginname\pluginname.vcxproj", "{GUID-GENERATED-BY-VISUAL-STUDIO}"
ProjectSection(ProjectDependencies) = postProject
{B17FCD80-7978-4544-93C4-2FE1AC6FE9F3} = {B17FCD80-7978-4544-93C4-2FE1AC6FE9F3}
``````
Last active Nov 8, 2018
View collide.py
 WIDTH = 640 HEIGHT = 480 BLACK = (0, 0, 0) RED = (120, 0, 0) box = Rect((100, 100), (100, 100), anchor=('left', 'top')) player = Rect((300, 100), (100, 100), anchor=('left', 'top')) def update(dt):
Last active Oct 3, 2018
View assert_alter.cpp
 #include #include #include std::string get_alter_typ(int alter) { std::string typ{}; // typ definiert if (alter < 18) // alter vergleichen {
Last active Sep 24, 2018
View tmp-folge-der-maus.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Sep 23, 2018
View md-svg-png.py
 #!/usr/bin/python3.6 import os import sys import argparse import re from subprocess import call parser = argparse.ArgumentParser(description='Convert a svn referenced in a markdown line into png.') parser.add_argument('lines', nargs='?', type=argparse.FileType('r'), default=sys.stdin)
Last active Jul 10, 2018
Python classes for exercising the adapter pattern
View README.md

# Adapter pattern with Python: the music player

Without modifying:

• the `Media_player_audio` and `Media_player_video` interfaces
• nor the `Media_player_mp4` class

add an adapter that allows the music player to play the sound of an mp4 file.

Created May 30, 2018
View README.md

# Lists sum problem

You are given two lists a and b with integers, that also can be negative, and a target sum.

Task:

• find a function that returns true if two numbers in the list can be added to build the target sum.
Created May 7, 2018
Python: Find the distance between points
View main.py
 #!/usr/bin/env python3 import math from itertools import accumulate from functools import reduce points = [(1,2), (2,1), (5,3)] # points = [[1,2], [2,1], [5,3]] print(points)
You can’t perform that action at this time.