This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Examples inspired by http://learnyouahaskell.com/syntax-in-functions | |
var fibobj = { | |
0: function(){return 1}, | |
1: function(){return 1}, | |
undefined: function(n){return fibs(n-1) + fibs(n-2)} | |
} | |
var fibs = (function(o){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <memory> | |
template <typename T, unsigned d1, unsigned d2 = 1, unsigned d3 = 1, unsigned d4 = 1> | |
struct TensorType | |
{ | |
typedef typename T real; | |
static unsigned const rank = (d1 > 1 ? ( d2 > 1 ? (d3 > 1 ? (d4 > 1 ? 4 : 3) : 2) : 1) : 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns offset.core | |
(:use (incanter core stats charts datasets)) | |
(:use [clojure.math.combinatorics]) | |
(:require [clojure.string :as cstr] | |
[clojure.data.csv :as csv] | |
[clojure.java.io :as io])) | |
(defn- to-dec [t] | |
(if (= 1 (count t)) | |
(first t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef ARG_PARSER_H_DEF | |
#define ARG_PARSER_H_DEF | |
#include <QCoreApplication> | |
#include <QString> | |
#include <QStringList> | |
// some unique keyword. | |
char static const *restkeyword = "unique-9c6e6236e14a43"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isEmpty( fortran_compiler ) { | |
# gfortran.prf | |
# Adds gfortran as extra compiler to the qmake build system. | |
# | |
# This file must reside in the path of QMAKEFEATURES | |
# | |
# Thomas Hagelien | |
# | |
F90 = gfortran |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NEWLINE = $$escape_expand(\\n\\r\\t) | |
!isEmpty(MODULE_DIR){ | |
MODFLAGS += -J$$MODULE_DIR | |
INCLUDEPATH += $$MODULE_DIR | |
} | |
F90 = ifort | |
MKDIR = $$quote($(MAKEFILE)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program binSearchTest | |
integer :: idx | |
real, allocatable :: v(:) | |
integer, allocatable :: v2(:) | |
interface binarySearch | |
procedure binarySearch_real | |
procedure binarySearch_int | |
end interface binarySearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Code: | |
(add-to-list 'load-path "~/.emacs.d/lisp/") | |
(add-to-list 'load-path ".") | |
(setq c-basic-indent 2) | |
(setq tab-width 4) | |
(setq indent-tabs-mode nil) | |
(require 'org) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p "Enter runner name [my-runner]: " name | |
read -p "Enter registration token: " token | |
read -p "Enter gitlab url: " url | |
volume_name=gitlab-volume-$name | |
runner_name=gitlab-runner-$name | |
docker volume create $volume_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
languages: | |
- af : Afrikaans | |
- af-ZA : Afrikaans (South Africa) | |
- ar : Arabic | |
- ar-AE : Arabic (U.A.E.) | |
- ar-BH : Arabic (Bahrain) | |
- ar-DZ : Arabic (Algeria) | |
- ar-EG : Arabic (Egypt) | |
- ar-IQ : Arabic (Iraq) |
OlderNewer