Skip to content

Instantly share code, notes, and snippets.

View suda's full-sized avatar
🍃

Wojtek Siudzinski suda

🍃
View GitHub Profile

Touristy things

  • Big Ben / Parlament
  • Westminster Abby
  • London Eye
  • Tower / Tower Bridge
  • Buckingham Palace
  • St James Park
  • Oxford Street
  • Trafalgar Square

Chords

dm em Esus E
F G C/G E/G#
am C/A dm/A D/A
A B/A C D
From aee7bc26393d4535df76d84029a0d0fc92724dfa Mon Sep 17 00:00:00 2001
From: Nick Clifton <nickc@redhat.com>
Date: Mon, 22 Dec 2014 22:59:03 +1030
Subject: [PATCH] Pass proper `bfd' argument to bfd_get_xxx functions
* bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
bfd_get_section_lma, bfd_get_section_alignment,
bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros
in order to use the `bfd' argument.
* bfd-in2.h: Regenerate.
From 1ffb381737b9c5b4c1177608aa4f3edb99cac98b Mon Sep 17 00:00:00 2001
From: Nick Clifton <nickc@redhat.com>
Date: Mon, 22 Dec 2014 22:52:06 +1030
Subject: [PATCH] Replace bfd_xxx_set with static inline functions
Following up on Tom's suggestion I am checking in a patch to replace the
various bfd_xxx_set macros with static inline functions, so that we can avoid
compile time warnings about comma expressions with unused values.
* bfd-in.h (bfd_set_section_vma): Delete.
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 3afd71b..c7c5a7d 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -292,9 +292,6 @@ typedef struct bfd_section *sec_ptr;
#define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
-#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)
-#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
@suda
suda / blink.ino
Last active April 28, 2016 12:47 — forked from brooksware2000/blink.ino
Example blink sketch

Particle Libraries v2

Abstract

Current user libraries architecture wasn't updated since its conception. Since then we added new tools (CLI and Dev), new boards and welcomed 3rd party module vendors in our ecosystem. All not anticipated when designing them. We want to revisit this with next version of our libraries.

Tools created for this purpose can be used outside our ecosystem i.e. with Arduino, Raspberry Pi.

Goals

@suda
suda / RCSwitch.cpp
Created March 18, 2014 10:21
RCSwitch for Spark Core
/* ========================= .cpp ================================= */
/*
RCSwitch - Arduino libary for remote control outlet switches
Copyright (c) 2011 Suat Özgür. All right reserved.
Contributors:
- Andre Koehler / info(at)tomate-online(dot)de
- Gordeev Andrey Vladimirovich / gordeev(at)openpyro(dot)com
- Skineffect / http://forum.ardumote.com/viewtopic.php?f=2&t=46
"""
Simple Gist for debugging Django requests using RequestBin (http://requestb.in/)
Usage:
from request_bin import request_bin
def index_view(request):
request_bin('http://requestb.in/1fpixiy1', request)
/**
* Module allowing to use Azure Mobile Services database on server side
* in a synchronous manner.
*
* Singleton based on http://simplapi.wordpress.com/2012/05/14/node-js-singleton-structure/
*
* @example
* var synchronizer = require('query-synchronizer');
* synchronizer.read(table, function(results) {
* // Do something with the results