by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
#lang racket | |
; | |
; A self-evaluating Lisp interpreter implemented without define, letrec, let | |
; | |
; Copyright (C) 2017 A. Carl Douglas | |
; | |
; without current-namespace, this racket error occurred: | |
; ?: function application is not allowed; | |
; no #%app syntax transformer is bound in: |
: -range ( a-addr1 u -- a-addr2 a-addr1 ) | |
cells over + ; | |
: range ( a-addr1 u -- a-addr1 a-addr2) | |
-range swap ; | |
: map! ( xt a-addr u -- ) | |
range ?do i @ over execute i ! cell +loop ; | |
: foldl ( xt w1 a-addr u2 -- w2 ) |
defmodule MyApp do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
children = [ | |
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
dispatch: dispatch | |
]) |
#include<stdio.h> | |
#include<string.h> | |
#include<stdlib.h> | |
#include<sys/mman.h> | |
typedef void V;typedef int I;typedef double F;typedef unsigned char C,*S;typedef long L; | |
#define O printf | |
#define R return | |
#define I(a...) if(a) | |
#define W(a...) while(a) |
Tips about implementing parse_transform
erlc -S
to check what the compiled forms look likeI have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
#!/bin/bash | |
# How to install Graphite as a user on CentOS 5.5 (with neither internet access and root account) | |
# -------------------------------------------------------------------------------- | |
# Tomasz Kalkosiński - refaktor.blogspot.com | |
# | |
# Graphite is a Scalable Realtime Graphing (http://graphite.wikidot.com/) | |
# This script is based on two excellent tutorials: | |
# http://community.webfaction.com/questions/10038/how-to-install-pycairo-in-python27-thanks |
# Copyright 2012 Erlware, LLC. All Rights Reserved. | |
# | |
# This file is provided to you 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, |