Add on top of default.nix: with import {};
or simply run as nix-build ''
(i. e. for nix-build complaining) or rather nix-build -E 'with import {}; callPackage ./default.nix {}'
(or even import)
This file contains 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
#! /usr/bin/perl | |
# Haxelib Bulk Install | |
# Install from git - [name] [github repo] | |
# Update library - [name] update | |
# Set library version - [name] set [version] | |
# Remove library - [name] remove/delete/del | |
use LWP::Simple; | |
use strict; |
This file contains 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
{ | |
"main": ["lit", "Hello, world!", "print"] | |
} |
This file contains 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
# instructions based on system crafters | |
# inside an ubuntu system (or any systemd-based system?) | |
cd /tmp | |
wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh | |
chmod +x guix-install.sh | |
sudo ./guix-install.sh | |
wget "https://sv.gnu.org/people/viewgpg.php?user_id=127547" -qO - | sudo -i gpg --import - | |
wget "https://sv.gnu.org/people/viewgpg.php?user_id=15145" -qO - | sudo -i gpg --import - |
This file contains 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
#EXTM3U | |
#EXTINF:-1,BBC - Radio 1 | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Xtra | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Dance | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1 Anthems (UK Only) | |
http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_one_anthems/bbc_radio_one_anthems.isml/bbc_radio_one_anthems-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 2 |
This file contains 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
"use strict"; | |
require("dotenv").config(); | |
/** | |
* An asynchronous bootstrap function that runs before | |
* your application gets started. | |
* | |
* This gives you an opportunity to set up your data model, | |
* run jobs, or perform some special logic. | |
* | |
* See more details here: https://strapi.io/documentation/3.0.0-beta.x/concepts/configurations.html#bootstrap |
This file contains 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
#!/usr/bin/env bb | |
;; convert.clj -- babashka edn/json/yaml to edn/json/yaml converter | |
;; Author: github.com/KGOH/ | |
;; Source: gist.github.com/KGOH/50c0f66022fea2ac173518a143238058 | |
;; Version: 2020.4 | |
; Usage example: | |
; In Emacs: i.imgur.com/TIEDmga.mp4 | |
; $ convert.clj edn <<< '{"foo": "bar"}' | |
; {:foo "bar"} |
This file contains 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
;; echo "hi" > /tmp/hi | |
(java.nio.file.Files/createSymbolicLink | |
(java.nio.file.Paths/get "/tmp/mylink" | |
(into-array String [])) | |
(java.nio.file.Paths/get "/tmp/hi" | |
(into-array String [])) | |
(into-array java.nio.file.attribute.FileAttribute [])) | |
;; unfortunately, this is not likely to work in windows until jdk >= 13 |
This file contains 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
[{"id":1,"name":"Jacob's (Off Track Cafe)","address":"W Canal Wharf","city":"Cardiff","postcode":"CF10 5DB","telephone_number":"029 2039 0939","website":"https:\/\/jacobsmarket.co.uk","latitude":51.47546,"longitude":-3.17614,"capacity_status":0},{"id":2,"name":"Jacob's 2","address":"W Canal Wharf","city":"Cardiff","postcode":"CF10 5DB","telephone_number":"029 2039 0939","website":"https:\/\/jacobsmarket.co.uk","latitude":51.47546,"longitude":-3.17614,"capacity_status":0},{"id":3,"name":"Clwb Ifor Bach (Top)","address":"11 Womanby St","city":"Cardiff","postcode":"CF10 1BR","telephone_number":"029 2023 2199","website":"https:\/\/clwb.net","latitude":51.53443,"longitude":-3.21426,"capacity_status":0},{"id":4,"name":"Clwb Ifor Bach (Lawr)","address":"11 Womanby St","city":"Cardiff","postcode":"CF10 1BR","telephone_number":"029 2023 2199","website":"https:\/\/clwb.net","latitude":51.53443,"longitude":-3.21426,"capacity_status":0},{"id":5,"name":"Kongs","address":"114-116 St Mary Street","city":"Cardiff","postcode" |
Because I have no trust in people.
<hashlink>
points to your installation of Hashlink, e.g. folder in whichhl.exe
(or Unix executable) is, alongside with library binaries (.hdll
files), andinclude
folder.<src>
points to the folder containing generated HL/C sources. One that containshlc.json
file.<app>
refers to your output executable name, including extension.<main>
refers to your entry-point file name, including extension (see below).- I provide example of doing it on Windows via MSVC
cl.exe
, but Unix should be more or less same with replacement of argument flags and compiler. - I expect that you DO have a compiler installed and can call
cl.exe
or other compiler from command-line.
NewerOlder