I hereby claim:
- I am kristof-mattei on github.
- I am kristofmattei (https://keybase.io/kristofmattei) on keybase.
- I have a public key ASCtQyd-9VA2StBNECcWVfRZeQu9zKgSp4Zw974SFZ-iSQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Rakefile | |
require File.expand_path('../config/application', __FILE__) | |
Rails.application.load_tasks | |
# Replace yarn with npm | |
Rake::Task['yarn:install'].clear if Rake::Task.task_defined?('yarn:install') | |
Rake::Task['webpacker:yarn_install'].clear | |
Rake::Task['webpacker:check_yarn'].clear |
# sorry, python doesn't have a built-in table printer | |
from tabulate import tabulate | |
max = 3 | |
def get_functions(): | |
lst = [] | |
for i in range(0, max): | |
lst.append(lambda: i) | |
return lst |
const { Octokit } = require("@octokit/rest"); | |
const { serializeError } = require("serialize-error"); | |
const octokit = new Octokit({ | |
auth: "PUT TOKEN HERE" | |
}); | |
const baseRef = { | |
owner: "Kristof-Mattei", |
const max = 3; | |
function get_functions() { | |
lst = [] | |
for (const i of [...Array(max).keys()]) { | |
lst.push(() => i) | |
} | |
return lst | |
} | |
function* get_functions_yield() { |
from neo4j import GraphDatabase | |
driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "****")) | |
query = """WITH {} AS x | |
CALL apoc.util.validate(x IS NOT NULL, 'A query that fails', [x]) | |
RETURN false""" | |
def read_transaction(): | |
def _callback(tx): |
module Engine.Functions | |
let rec Calculate columns = | |
match columns with | |
| h::[] -> [ [ h ] ] | |
| h::t -> | |
let x = Calculate t | |
List.fold (fun acc elem -> (h::elem)::acc) ([h]::x) x | |
| [] -> [] |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication41 | |
{ | |
class Program | |
{ |