Skip to content

Instantly share code, notes, and snippets.

hasanparasteh /
Created Dec 4, 2021
Calculate summation of each row and whole matrix in parallel
import multiprocessing as mp
import random
from typing import List
class ParallelSummation:
def __init__(self) -> None:
self.matrix: List = []
def randomize_matrix(self, n: int, m: int) -> List:
devCcori / Ploting_hypotesis_testing.jl
Created Dec 4, 2021
Ploting hipotesis testing in Julia
View Ploting_hypotesis_testing.jl
using Plots
using Distributions
using StatsPlots
#For ploting bilateral hypothesis testing
let n = Normal(),
q0 = quantile(n,0.025)
q1 = -quantile(n,0.025)
plot(x->pdf(n,x),-4,q0, fillrange=0, c=:yellow, label="Zona de Rechazo")
plot!(x->pdf(n,x),q0,q1, fillrange=0, c=:orange, label="Zona de Aceptación")
kaniket7209 / FAQ
Created Dec 4, 2021
Getting our App ready for Heroku
View FAQ
1. What is Procfile in node?
Answer: Procfile is a mechanism for declaring what commands are run by your application's dynos on the Heroku platform.
2. How do I run a Procfile locally?
Answer: To start your app locally follow the below steps:
a) To use a different Procfile, use the -f flag: heroku local -f Procfile. test .
b) To use a different environment file, use the -e flag: heroku local -e . env. test .
c) To use a different port, use the -p flag: heroku local -p 7000 . If you don't specify a port, 5000 is used.
3. Where do I put Procfile?
View .inputrc
set completion-ignore-case on
View openpanzer-save.json
{"scenario":{"name":"Warta Crossing","maxTurns":18,"date":"1939-09-03T23:00:00.000Z","atmosferic":1,"latitude":2,"ground":0,"turnsPerDay":6,"dayTurn":2,"reinforcements":{"2":[],"3":[{"row":37,"col":41,"unit":{"eqid":270,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":7,"facing":10,"flag":16,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":67,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"3","id":1},{"row":37,"col":42,"unit":{"eqid":270,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":8,"facing":10,"flag":16,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":55,"
HugsLibRecordKeeper / output_log.txt
Created Dec 4, 2021
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Saturday, December 4, 2021, 12:38:57 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:]: 0Harmony(2.1.1), HarmonyMod(1.1.1)
BetterLoading(me.samboycoding.betterloading)[mv:]: 0Harmony(av:2.1.1,fv:2.1.0), BetterLoading(2.3.0)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
SRTS Expanded(smashphil.neceros.srtsexpanded)[mv:1.4.6]: 0Harmony(av:2.1.1,fv:2.1.0), SRTS(1.0.0)
HugsLib(UnlimitedHugs.HugsLib)[ov:9.0.1]: 0Harmony(av:2.1.1,fv:, HugsLib(av:1.0.0,fv:9.0.1)
Locks 2: Lock Them Out!(krkr.locks2): Locks2(1.0.0)
View Faq.txt
Q1. How to create a empty tables in lua?
ans: table_name = { } , this will create a empty table.
Q2.What will be the values of an unassigned index in tables?
ans: nil
Q3. Are tables mutables?
ans Yes,tables are mutables.
Q4.Are there arrays and vectors in lua?
rafaelcalleja / Makefile.version
Created Dec 4, 2021 — forked from grihabor/Makefile.version
Makefile to use for incremental semantic versioning
View Makefile.version
MAKE := make --no-print-directory
DESCRIBE := $(shell git describe --match "v*" --always --tags)
DESCRIBE_PARTS := $(subst -, ,$(DESCRIBE))
VERSION := $(subst v,,$(VERSION_TAG))
VERSION_PARTS := $(subst ., ,$(VERSION))
kckevinchenzk / .deps...remix-tests...remix_accounts.sol
Created Dec 4, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View .deps...remix-tests...remix_accounts.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;