Skip to content

Instantly share code, notes, and snippets.

View faebser's full-sized avatar

Fabian Frei faebser

  • Master Student at Interface Culture
  • Linz
View GitHub Profile
@faebser
faebser / git diff
Created October 4, 2023 10:42
install and run yarn start
git diff package.json
diff --git a/package.json b/package.json
index 6b8f48c..83bcc32 100644
--- a/package.json
+++ b/package.json
@@ -70,7 +70,8 @@
"prop-types": "^15.7.2",
"react": "^17.0",
"react-dom": "^17.0",
- "uuid": "^8.2.0"
void setup() {
// put your setup code here, to run once:
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(A1, OUTPUT);
pinMode(A2, OUTPUT);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
Serial.begin(9600);
@faebser
faebser / cli.ex
Created March 9, 2019 17:42
supervisor code
def process({:get_thumbs, folder_path, json_path}) do
# lets start a supervisor here
Task.Supervisor.start_link(name: CLI.Supervisor, strategy: :one_for_one, max_timeout: 35)
download_thumbs(json_object, 1, folder_fn)
# download_thumbs unpacks a list of links inside of json object
# and calls donwload_thumbs_files with it
end
def download_thumbs_files(links, result, path) do
# Fabian Frei
#
# PURPOSE: This program calculates the remainder of the product of a
# set of integer data items (long values).
#
# VARIABLES: The registers have the following uses:
#
# %rcx - Holds the index of the data item being examined, changed from %rdx
# %rbx - current data item

Keybase proof

I hereby claim:

  • I am faebser on github.
  • I am faebser (https://keybase.io/faebser) on keybase.
  • I have a public key ASB96HbxVt3-Sv6QIfHOboBjvPFDhexyH5YQjM7lg1dIbQo

To claim this, I am signing this object:

class BlogListWithPaginationPlugin(CMSPluginBase):
model = BlogListWithPagination
module = ps.module
render_template = path.join(ps.templatePath, 'article_list.html')
name = _(u'Blog Liste')
def render(self, context, instance, placeholder):
context['instance'] = instance
context['placeholder'] = placeholder
parameter = context['request'].GET.get('pagination', None)
@faebser
faebser / settings.py
Created July 28, 2014 10:09
CKEDITOR_SETTINGS
CKEDITOR_SETTINGS = {
'toolbar_HTMLField': [
['Maximize', 'Source'],
['Undo', 'Redo', '-', 'PasteText', 'BulletedList', '-', 'cmsplugins', 'Link', 'Unlink', '-', 'Iframe']
],
'language': '{{ language }}',
'skin': 'moono'
}
@faebser
faebser / boomkat
Created February 21, 2014 00:38
boomkat download script with automatic unzipping and removal
#!/bin/bash
# run like this ./boomkat.sh https://downloads.boomkat.com/adcaxxxxx
SAVEPATH="path/to/extract/to/with/trailing/slash"
if [ -z "$1" ]; then
echo "ERROR: no boomkat-link in input"
exit 1
fi
echo "getting filename"
@faebser
faebser / 1.css
Created April 17, 2013 14:17
evial css haxxxormatik mit css für de phlip
body {
transform:rotate(-90deg);
}
@media all and (orientation:landscape) {
body {
transform:rotate(0deg);
}
}
@faebser
faebser / gist:5318322
Created April 5, 2013 10:38
bxslider: a href for element. Only works if the slider has no click-handler added for element.
<ul class="bxslider">
<li><a href="bla">"<img src="/images/pic1.jpg" /></a></li>
<li><a href="blo"><img src="/images/pic2.jpg" /></a></li>
<li><a href="blub"><img src="/images/pic3.jpg" /></a></li>
<li><a href="foo"><img src="/images/pic4.jpg" /></a></li>
</ul>