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
n = ((n >> 1) & 0x55555555) | ((n << 1) & 0xaaaaaaaa); | |
n = ((n >> 2) & 0x33333333) | ((n << 2) & 0xcccccccc); | |
n = ((n >> 4) & 0x0f0f0f0f) | ((n << 4) & 0xf0f0f0f0); | |
n = ((n >> 8) & 0x00ff00ff) | ((n << 8) & 0xff00ff00); | |
n = ((n >> 16) & 0x0000ffff) | ((n << 16) & 0xffff0000); | |
// -- C code which reverses the bits in a word |
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
git submodule foreach git merge origin/master |
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 | |
# This gist can be run with the following command. (May not always work) | |
# wget https://gist.github.com/azeey/936969/raw/dotfiles_setup.sh -O- | bash | |
DOTFILES_DIR="$HOME/dotfiles" | |
GIT_URL="git://github.com/azeey/dotfiles.git" | |
# Update repo | |
sudo su <<EOF | |
apt-get update |
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
#mspdebug | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f432", MODE="0666", GROUP="users" | |
#msp430-bsl | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2047", ATTRS{idProduct}=="0200", MODE="0666", GROUP="users" | |
#msp fet430uif | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f430", MODE="0666", GROUP="users" |
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
# SmartRF05 Evaluation Board | |
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a0", MODE="0666" | |
# SmartRF04 Evaluation Board | |
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="11a0", ATTRS{idProduct}=="db20", MODE="0666" | |
# CC Debugger | |
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a2", MODE="0666" |
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/sh | |
#set -x | |
ncc "-fnesc-dump=referenced(interfaces,components,functions)" "-fnesc-dump=functions(!global())" "-fnesc-dump=interfaces" "-fnesc-dump=components(wiring)" "-fnesc-dump=interfacedefs" -fsyntax-only $@ |
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
- git: {local-name: mitsubishi_arm, uri: 'git://github.com/azeey/mitsubishi_arm.git'} | |
- git: {local-name: mac_ros, uri: '[email protected]:azeey/mac.git'} |
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
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -199,16 +199,21 @@ else() | |
endif() | |
filter_valid_compiler_warnings(${WARN_LEVEL} -Wextra -Wno-long-long | |
-Wno-unused-value -Wno-unused-value -Wno-unused-value -Wno-unused-value | |
-Wfloat-equal -Wshadow -Winit-self -Wswitch-default | |
-Wmissing-include-dirs -pedantic -Wno-pragmas) |
OlderNewer