Example:
Jeffreys-MacBook-Air$ ant example
Buildfile: /Users/jsambells/Documents/example/build.xml
[echo] Parsing properties
[echo] greeting=Hello
[echo] audience=world
example:
[echo] Hello world
Example:
Jeffreys-MacBook-Air$ ant example
Buildfile: /Users/jsambells/Documents/example/build.xml
[echo] Parsing properties
[echo] greeting=Hello
[echo] audience=world
example:
[echo] Hello world
| # requires android ndkr8b or above | |
| .PHONY: check-ndk clean | |
| LIBOBJC2_MAKEFILE := libobjc2-1.6.1/Makefile | |
| X86SYSROOT := $(shell pwd)/androidtoolchain-x86 | |
| ARMSYSROOT := $(shell pwd)/androidtoolchain-arm | |
| GCC_X86 := $(X86SYSROOT)/bin/i686-android-linux-gcc | |
| GCC_ARM := $(ARMSYSROOT)/bin/arm-linux-androideabi-gcc | |
| LLVM_CONFIGURE := llvm/configure |
| //#!/usr/bin/env objc-run | |
| #import <Foundation/Foundation.h> | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> | |
| /// | |
| /// Typedefs | |
| typedef id (^TargetMethod)(id arg); |
http://embedded-lab.com/blog/stm32-gpio-ports-insights/
http://hertaville.com/stm32f0-gpio-tutorial-part-1.html
The libmaple libraries, on which STM32duino is based, provides access to registers by the syntax:
GPIOA->regs->REG| #!/bin/bash | |
| # install can-utils | |
| git clone https://github.com/linux-can/can-utils.git | |
| cd can-utils | |
| ./autogen.sh | |
| ./configure | |
| make | |
| sudo make install |
| /* global createImageBitmap */ | |
| function loadImageWithImageTag(src) { | |
| return new Promise((resolve, reject) => { | |
| const img = new Image; | |
| img.crossOrigin = ''; | |
| img.src = src; | |
| img.onload = () => { resolve(img); }; | |
| img.onerror = () => { reject(img); }; | |
| }); |
| #!/usr/bin/env python | |
| """ | |
| How to use it: | |
| 1. Just `kill -2 PROCESS_ID` or `kill -15 PROCESS_ID`, | |
| The Tornado Web Server Will shutdown after process all the request. | |
| 2. When you run it behind Nginx, it can graceful reboot your production server. | |
| """ | |
| import time |
| // Sobel Edge Detection Filter | |
| // GLSL Fragment Shader | |
| // Implementation by Patrick Hebron | |
| uniform sampler2D texture; | |
| uniform float width; | |
| uniform float height; | |
| void make_kernel(inout vec4 n[9], sampler2D tex, vec2 coord) | |
| { |
Original post : https://unix.stackexchange.com/a/310699
nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
https://github.com/aancel/admin/wiki/VirtualGL-on-Ubuntu
https://virtualgl.org/About/Introduction
When you use ssh with X forwarding, you might have noticed that you cannot execute programs that require 3D acceleration. That's where VirtualGL comes into play.