See https://github.com/jorisvddonk/node-red-contrib-discord
RUN mkdir -p /opt/bin; mkdir -p /opt/doc; mkdir -p /opt/man; mkdir -p /opt/share; wget -O - https://github.com/Kitware/CMake/releases/download/v3.26.2/cmake-3.26.2-linux-x86_64.tar.gz | tar -xvzf - -C /opt --strip-components=1 | |
ENV PATH=/opt/bin:${PATH} | |
RUN cmake --version |
import { ApolloServerPlugin, GraphQLServiceContext } from "apollo-server-plugin-base"; | |
import { GraphQLSchema, separateOperations } from "graphql"; | |
import { fieldConfigEstimator, getComplexity, simpleEstimator } from "graphql-query-complexity"; | |
export class ApolloComplexityPlugin implements ApolloServerPlugin { | |
private schema: GraphQLSchema; | |
constructor(private maxComplexity: number) { } | |
public serverWillStart(service: GraphQLServiceContext) { |
This is a very basic Utomik game browser for your smartphone! It's built using Jasonette. I spent about 30 minutes on it from the moment I heard about Jasonette.
- Install Jason, the jsonette viewer on your iOS/Android phone. NOTE: For Android, you might want to install this more up to date version of the viewer instead.
- Open Jason
- In Jason, where it says 'enter a valid jason url', enter the raw URL to the .json file in this gist, then hit 'Go'.
- Tap on 'Utomik game browser' and SEE GAMES. Wow. Such amaze.
<html> | |
<head> | |
<meta http-equiv="refresh" content="0;URL='http://utomik-wheel-of-fortune.surge.sh'"> | |
<script type="text/javascript"> | |
window.location.href='http://utomik-wheel-of-fortune.surge.sh'; | |
</script> | |
</head> | |
<body> | |
Hello, this page has moved to <a href="http://utomik-wheel-of-fortune.surge.sh">http://utomik-wheel-of-fortune.surge.sh</a>. | |
</body> |
Here are some of my favorite sci-fi short stories and novels. Many of these are high up the sci-fi hardness scale, and may be quite demanding on the reader (e.g. require that they pay attention to several pages of infodumps). Several of these were written a fairly long time ago, but they should, for the most part, still stand up to the test of time.
You can read this fantastic short story in just a few minutes, whilst you're on the toilet. If you've never read any sci-fi, and especially if you think sci-fi is just overly masculine starship captains with funny-sounding laser pistols, start with this to get a modernist view on what sci-fi can mean and do as a literary style.
This short story clocks down at a little under 5 thousand words; more than enough for Asimov to crea
/* | |
$pluck is a pipeline operator which returns the result of resolving `expr` on each item in the collection. | |
This allows you to 'boil down' a collection to just the values you're interested in. | |
Example: | |
Mingo.aggregate(grades_complex, [{$unwind: "$scores"}, {$pluck: "scores.score"}]); | |
returns an array of all scores in the 'grades_complex' dataset: [57.92947112575566, 21.24542588206755, 68.1956781058743, 67.95019716560351, 18.81037253352722, 39.17749400402234, ...] | |
*/ | |
Mingo.addOperators(Mingo.OP_PIPELINE, function(m) { | |
return { |
/* | |
* ScriptInjector-snippet | |
* Copyright (c) 2015 Joris van de Donk | |
* Snippet that can be used to inject JavaScript and CSS into a page. | |
* Uses cdnjs.com's CDN and APIs. | |
* Licensed under the MIT license. | |
* Very WIP as of yet ;) | |
*/ | |
(function() { |
--- | |
- hosts: all | |
sudo: True | |
tasks: | |
- name: Install package via apt | |
apt: pkg=mc |
joris@vagrant:~$ fab test_func | |
Fabric version: 1.7.0 | |
[localhost] local: env | grep foo | |
foo=bar | |
[localhost] local: env | grep baz | |
baz=qux | |
Done. |