Skip to content

Instantly share code, notes, and snippets.

@Gregivy
Gregivy / install_dlv.sh
Last active July 6, 2021 13:28
Jupyter Lab for DL & CV
#!/bin/bash
if ! command -v node &> /dev/null
then
echo "NodeJS could not be found! Need NodeJS >=12"
else
currentver="$(node -v)"
requiredver="12.0.0"
if [ "$(printf '%s\n' "$requiredver" "$currentver" | sort -V | head -n1)" = "$requiredver" ]; then
echo "NodeJS ${currentver} found"
else
@Gregivy
Gregivy / pub.js
Created January 17, 2019 16:26
Метеор публикация. Количество сообщений в некотором диалоге (при условии, что сообщения нельзя удалять)
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import { Dialogs } from './dialogs.js'; // коллекция диалогов
import { Messages } from './messages.js'; // коллекция сообщений
/*
* messageNumberInDialog (dialogId)
* dialogId string - ID диалога
* ----------------------------------------------------
@Gregivy
Gregivy / InputMask.html
Last active October 26, 2018 23:45 — forked from codinronan/InputMask.html
Custom Ionic 2 & 3 Input Mask Directive
<ion-input type="tel" reg="^[0-9]" placeholder="(xxx) xxx-xxxx" mask="(***) ***-****" [(ngModel)]="phone" name="phone"></ion-input>
<ion-input type="tel" reg="^[0-9]" placeholder="xxx-xx-xxxx" mask="***-**-****" [(ngModel)]="ssn" name="ssn"></ion-input>
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "testapp"
},
"spec": {
"ports": [
{
"port": 80,
program blur
use pgmio
implicit none
double precision, parameter :: t=10.0d0, deltaT=0.2d0, k=5.0d0
character*(*), parameter :: input='dif_tomography.pgm', output='dif_tomography_perona.pgm'
double precision, allocatable :: u(:,:), nu(:,:)
double precision :: north, south, east, west, level
! *************************************************
!
! Module for reading/writing compressed pgm files.
! Author: Plyusch Gregory
! Use this module only for compressed pgm files with 255 maximum value per pixel.
!
! *************************************************
module pgmio
travis_fold:start:worker_info
Worker information
hostname: worker-jupiter-brain:9466c196-a2c5-43f7-b720-7e303acf8e39
version: v2.5.0-42-g6608530 https://github.com/travis-ci/worker/tree/6608530a4d4299250cb39aba287709b8b6e422d9
instance: f38e28e9-d2cb-45c5-b370-9bf8b01359d4:travis-ci-osx10.11-xcode7.3-1479248196
startup: 4m1.509904216s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: objective-c