Skip to content

Instantly share code, notes, and snippets.

#include <avr/io.h>
#include <util/delay.h>
int main(void) {
DDRB = 0b11111111;
while (1) {
PORTB = 0b11111111;
_delay_ms(1000);
PORTB = 0b00000000;

Cześć,

mam w Behat3 taki scenariusz:

  Scenario: Get task
    Given Entity "task" exists:
      | property    | value                       |
      | title       | Hello                       |
 | description | Lorem ipsum dolor sit amet |
@drymek
drymek / rename.sh
Created January 9, 2014 08:16
Change namespace, file names and file contents.
find ./src/ -type f -exec sed -i 's/CO/NACO/g' {} \;
find ./src/ -type f -exec sed -i 's/CO/NACO/g' {} \;
find ./src/ -name "*CO*" | xargs rename 's/CO/NACO/'
@drymek
drymek / database.sh
Created October 14, 2013 12:45
Open database manager (mysql is the only one supported right now) based on parameters.yml file.
#!/bin/bash
## Usage
## database.sh /path/parameters.yml
## or if you are in symfony root directory
## database.sh
if [ -z $1 ]
then
if [ -f "app/config/parameters.yml" ]
@drymek
drymek / post-checkout
Last active December 25, 2015 01:39
Notification when switching to git branches with different composer.lock source: http://www.markbadolato.com/blog/2013/08/23/notification-when-switchin-git-branches/
#!/bin/bash
# wget https://gist.github.com/drymek/6896918/raw -O /usr/share/git-core/templates/hooks/post-checkout
# chmod +x /usr/share/git-core/templates/hooks/post-checkout
# git init # to reload current git repository
PREV_COMMIT=$1
POST_COMMIT=$2
# MacOS Colors
NOCOLOR='\x1B[0m'