Skip to content

Instantly share code, notes, and snippets.

# Makefile for blink demo
#TOOLS = arm-linux-gnu
TOOLS = arm-none-eabi
# Assembling with gcc makes it want crt0 at link time.
#AS = $(TOOLS)-gcc
AS = $(TOOLS)-as
# Use the -g flag if you intend to use gdb
#CC = $(TOOLS)-gcc -mcpu=cortex-m3 -mthumb
diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h
index cd6037677df2..a629390c7896 100644
--- a/libstdc++-v3/include/bits/basic_string.h
+++ b/libstdc++-v3/include/bits/basic_string.h
@@ -2811,7 +2811,23 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
inline basic_istream<_CharT, _Traits>&
getline(basic_istream<_CharT, _Traits>& __is,
basic_string<_CharT, _Traits, _Alloc>& __str)
- { return getline(__is, __str, __is.widen('\n')); }
+ { return std::getline(__is, __str, __is.widen('\n')); }
@uxp
uxp / bootstrap.sh
Last active November 17, 2017 17:58 — forked from abulte/bootstrap.sh
Build a custom RPI image
#!/bin/bash
# Based on work by Klaus M Pfeiffer at http://blog.kmp.or.at/2012/05/build-your-own-raspberry-pi-image/
# you need to do: "sudo apt-get install binfmt-support qemu qemu-user-static debootstrap kpartx lvm2 dosfstools"
# run with "sudo bootstrap.sh /dev/sd[x]"
# This attempts to build an image without systemd
echo "Use like: sudo bootstrap.sh /dev/sd[x]"
#deb_mirror="http://ftp.debian.org/debian"
@uxp
uxp / App-reach.js
Created March 25, 2022 14:53
contrived example
import React from 'react';
import { render } from 'react-dom';
import { Router, Route } from '@reach/router';
const Home = () => (<h2>Home</h2>);
const Admin = ({props}) => (<div><h2>Admin</h2><hr/><div>{props.children}</div></div>);
const Users = () => (<h2>Users</h2>);
const App = () => (
<Router>