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
#!/bin/bash | |
python -c "import random | |
questions = ['1: when you have cereal, do you have more milk than cereal or more cereal than milk?', | |
'2: do you like the feeling of cold air on your cheeks on a wintery day?', | |
'3: what random objects do you use to bookmark your books?', | |
'4: how do you take your coffee/tea?', | |
'5: are you self-conscious of your smile?', | |
'6: do you keep plants?', |
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
class RGBWDriver : public Adafruit_PWMServoDriver | |
{ | |
private: | |
uint8_t ch_R; | |
uint8_t ch_G; | |
uint8_t ch_B; | |
uint8_t ch_W; | |
void setChannels(uint8_t r, uint8_t g, uint8_t b, uint8_t w) | |
{ | |
this->ch_R = r; |
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/python | |
# python 2.7 | |
#_*_ coding: utf-8 _*_ | |
""" | |
@file dynip-alert.py | |
@author Simon Burkhardt - simonmartin.ch | |
@date 2018-03-01 | |
@version 1.1 | |
@copyright CC0 - https://creativecommons.org/publicdomain/zero/1.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
/* USER CODE BEGIN Includes */ | |
#include <stdio.h> | |
/* USER CODE BEGIN 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
package pro2e.matlabfunctions; | |
import java.math.BigDecimal; | |
public class Fensterfunktionen { | |
/** | |
* @brief enumerations for the different window functions | |
*/ | |
public static final int RECTANGULAR = 0; | |
public static final int CHEBYSHEV = 1; |
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
/** | |
* This sketch is specifically for programming the EEPROM used in the 8-bit | |
* decimal display decoder described in https://youtu.be/dLh1n2dErzE | |
* | |
* Adapted the truth table for common anode 7-segment display | |
*/ | |
#define SHIFT_DATA 2 | |
#define SHIFT_CLK 3 | |
#define SHIFT_LATCH 4 | |
#define EEPROM_D0 5 |
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
#!/bin/bash | |
# @title : debian-setup.sh | |
# @author : Simon Burkhardt - simonmartin.ch | |
# @date : 2017-12-23 | |
# @version : 1.1.0 | |
# @copyright : CC0 - https://creativecommons.org/publicdomain/zero/1.0 | |
# @brief : Install beautiful stuff, uninstalls useless gnome bloatware | |
# @details : none | |
# @date : 10.04.2017 |
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/python | |
#_*_ coding: utf-8 _*_ | |
''' | |
@author Simon Burkhardt - simonmartin.ch - github.com/mnemocron | |
@date 2017 | |
''' | |
import random | |
import sys # args |