Skip to content

Instantly share code, notes, and snippets.

Patrick Mulder mulderp

Block or report user

Report or block mulderp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@baiwfg2
baiwfg2 / CMakeLists.txt
Created Sep 29, 2018
How to use add_custom_target and add_custom_command correctly in cmake
View CMakeLists.txt
# References:
# https://cmake.org/cmake/help/latest/command/add_custom_target.html
# https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/
# https://gist.github.com/socantre/7ee63133a0a3a08f3990
# https://stackoverflow.com/questions/24163778/how-to-add-custom-target-that-depends-on-make-install
# https://stackoverflow.com/questions/30719275/add-custom-command-is-not-generating-a-target
# https://stackoverflow.com/questions/26024235/how-to-call-a-cmake-function-from-add-custom-target-command
# https://blog.csdn.net/gubenpeiyuan/article/details/51096777
cmake_minimum_required(VERSION 3.10)
@chunseoklee
chunseoklee / oneshot.sh
Last active Feb 20, 2017
build iotjs for nuttx on stm32f4
View oneshot.sh
#!/bin/bash
# This script assumes that you have all dependencies on Ubuntu 14.04
# It will takes about 10 or more minites due to repo cloning.
#
# ./harmony ----- iotjs
# |
# ---- nuttx
mkdir harmony
@geotheory
geotheory / ubilinux-flashall-osx.diff
Last active Oct 31, 2016 — forked from ximus/ubilinux-flashall-osx.diff
get flashall.sh to work on osx
View ubilinux-flashall-osx.diff
--- flashall.sh
+++ (clipboard)
@@ -220,15 +220,14 @@
flash-command --alt u-boot-env0 -D "${VARIANT_FILE}"
echo "Flashing U-Boot Environment Backup"
- flash-command --alt u-boot-env1 -D "${VARIANT_FILE}" -R
+ flash-command --alt u-boot-env1 -D "${VARIANT_FILE}"
echo "Rebooting to apply partition changes"
- dfu-wait no-prompt
@jedthehumanoid
jedthehumanoid / serialport-electron.md
Last active Jun 11, 2018
Build node serialport for electron
View serialport-electron.md

Building node-serialport for Electron on Windows

These instruction are for Windows, on my Linux installation(Fedora 21) everything works by just installing serialport with npm (I don't know why!).

These are the steps I did to build node serialport for electron (formerly atom-shell) for Windows. I am completely certain there is a better way to do it, but since I struggled with it for quite a while, here is a solution anyway.

You need some version of Visual studio installed, I have VS 2012 Express for Desktop.

@tracend
tracend / backbone.ui.modal.css
Last active Oct 9, 2015
[DEPRECATED]: Backbone.js - Modal extension. Note: Development of this Extension has moved to Backbone UI: http://github.com/backbone-ui/modal
View backbone.ui.modal.css
.ui-modal {
z-index: 99;
position: absolute;
height: 100%;
width: 100%;
text-align: center;
}
/* CSS centering: http://css-tricks.com/centering-in-the-unknown/ */
/* The ghost, nudged to maintain perfect centering */
View style_guide.md

High level style in javascript.

Opinions are like assholes, every one has got one.

This one is mine.

Punctuation: who cares?

Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.

@tlrobinson
tlrobinson / LICENSE.txt
Created Oct 2, 2011
Extremely simple lexer, parser, compiler, and interpreter for a prefix notation calculator.
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Tom Robinson <http://tlrobinson.net/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
You can’t perform that action at this time.