$ mkdir -p beaglelfs/{sources,rootfs_install,boot_mnt,rootfs_mnt}
Download the latest i686 Binary TAR of the ARM GNU/Linux (glibc-based) Lite Toolchain:
| (ns datomic-play.core | |
| (:use [datomic.api :only [db q] :as d]) | |
| (:require [clojure.core.logic :as l] | |
| [clojure.pprint :as pp])) | |
| (def uri "datomic:dev://localhost:4334/hello") | |
| (defprotocol IUnifyWithDatum | |
| (unify-with-datum [u v s])) |
| ;; Datomic example code | |
| (use '[datomic.api :only (db q) :as d]) | |
| ;; ?answer binds a scalar | |
| (q '[:find ?answer :in ?answer] | |
| 42) | |
| ;; of course you can bind more than one of anything | |
| (q '[:find ?last ?first :in ?last ?first] | |
| "Doe" "John") |
| # Five lines of code that will make your underscore + CoffeeScript use cleaner. | |
| # Creates an underscore function for each function in to_reverse with R (short for Reversed) appended to the name. | |
| # The R version moves the function argument (first argument in normal underscore) to the end, | |
| # so you can write: | |
| $(window).scroll _.throttleR 500, -> | |
| console.log "This print's at most every 500ms" | |
| # Instead of: | |
| $(window).scroll _.throttle -> | |
| console.log "This prints at most every 500ms too" |
| /*--- checkForBadJavascripts() | |
| This is a utility function, meant to be used inside a Greasemonkey script that | |
| has the "@run-at document-start" directive set. | |
| It Checks for and deletes or replaces specific <script> tags. | |
| */ | |
| function checkForBadJavascripts (controlArray) { | |
| /*--- Note that this is a self-initializing function. The controlArray | |
| parameter is only active for the FIRST call. After that, it is an | |
| event listener. |
| class Ns | |
| def initialize | |
| use.each do |pkg, method_names| | |
| method_names.each do |name| | |
| self.class.send(:define_method, name) do |*args| | |
| pkg.method(name).call(*args) | |
| end | |
| end | |
| end | |
| end |
| /* | |
| Copyright 2012-2021 Viktor Klang | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| (ns mist.logic.datalog | |
| (:use clojure.core.logic | |
| [clojure.set :only [union, difference]]) | |
| (:require clojure.walk)) | |
| (defn- all-o [goal args] | |
| (conde | |
| [(emptyo args)] | |
| [(fresh [arg rest] | |
| (conso arg rest args) |
| #include <stdio.h> | |
| #define CONFIG_FOO 1 | |
| #define CONFIG_NOO 0 | |
| #define is_set(macro) is_set_(macro) | |
| #define macrotest_1 , | |
| #define is_set_(value) is_set__(macrotest_##value) | |
| #define is_set__(comma) is_set___(comma 1, 0) | |
| #define is_set___(_, v, ...) v |
| function A(i,j) { | |
| return 1/((i+j)*(i+j+1)/2+i+1); | |
| } | |
| function Au(u,v) { | |
| for (var i=0; i<u.length; ++i) { | |
| var t = 0; | |
| for (var j=0; j<u.length; ++j) | |
| t += A(i,j) * u[j]; | |
| v[i] = t; |