how to assemble and link:
nasm -f elf32 -o <filename>.o <filename>.asm
ld -m elf_i386 -o <filename> <filename>.o
template code (hello world):
section .text
global _start
Below CloudFormation stack which runs GitHub Self-hosted runners on EC2 Spot Instances managed by AutoScalingGroup. It automatically register new instances as self-hosted runners and removes them when Spot is interrupted.
UserData
fill stack parameter AdditionalUserData
Copyright © 2016-2017 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
curl http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc | sudo apt-key add - | |
sudo vi /etc/apt/sources.list | |
cat /etc/apt/sources.list | |
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi | |
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main | |
sudo apt-get update | |
sudo apt-get install uv4l-webrtc | |
sudo apt-get install uv4l-raspicam-extras | |
sudo service uv4l_raspicam restart |
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
// Bootstrap wants jQuery global =( | |
window.jQuery = $ = require('jquery') | |
// Bootstrap doesn't have a "main" field / export anything =( | |
var bootstrap = require('bootstrap/dist/js/bootstrap') | |
// Get Bootstrap styles with cssify | |
var style = require('./node_modules/bootstrap/dist/css/bootstrap.css') | |
var popover = document.createElement('span') | |
popover.innerHTML = 'I have a popover' |
$sudo apt-get install libopencv-dev | |
$mkdir hellocv | |
$cd hellocv | |
$mkdir lib | |
#get opencv-2XX.jar and copy into hellocv/lib | |
#sudo dpkg -L libopencv-dev | |
$cp /usr/share/OpenCV/java/opencv-248.jar lib/ | |
$sbt run |
[adrian@localhost ~]$ cat /tmp/alsa-info.txt.LwuI5O5q82 | |
upload=true&script=true&cardinfo= | |
!!################################ | |
!!ALSA Information Script v 0.4.64 | |
!!################################ | |
!!Script ran on: Sat Mar 5 09:11:29 UTC 2016 | |
!!Linux Distribution |
(ns braintree-clj.core | |
(:import [com.braintreegateway BraintreeGateway Environment TransactionRequest Transaction$Type]) | |
(:require [clojure.string :as s] | |
[hiccup.core :as hiccup] | |
[hiccup.page-helpers :as page-helper] | |
[noir.core :as noir] | |
[noir.request :as noir-req] |