Skip to content

Instantly share code, notes, and snippets.

View nightsh's full-sized avatar
😱
Nope.

Victor Nițu nightsh

😱
Nope.
View GitHub Profile
@nightsh
nightsh / hide_publisher_datasets.py
Created July 23, 2020 14:00
hide_publisher_datasets.py
from __future__ import print_function
import os
import sys
from ckanapi import RemoteCKAN
url = os.getenv('ED_CKAN_URL', None)
apiKey = os.getenv('ED_CKAN_KEY', None)
publisher_id = os.getenv('ED_CKAN_ORG_ID', None)
@nightsh
nightsh / migrate_level_of_data.py
Created July 23, 2020 13:59
migrate_level_of_data.py
from __future__ import print_function
import os
import sys
from ckanapi import RemoteCKAN
url = os.getenv('ED_CKAN_URL', None)
apiKey = os.getenv('ED_CKAN_KEY', None)
def get_packages():
packages = remote.action.package_list()
@nightsh
nightsh / styleObserver.js
Last active November 22, 2019 06:35
javascript style observer
var styleObserver = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
var computedStyle = window.getComputedStyle(target, null);
console.log(mutationRecord);
if (mutationRecord.target.style.display == 'block') {
console.log('block!');
mutationRecord.target.focus();
}
});
});
Verifying my Blockstack ID is secured with the address 1M56nZdg37q4ETTQuyDf1s39vyrd579kM2 https://explorer.blockstack.org/address/1M56nZdg37q4ETTQuyDf1s39vyrd579kM2
@nightsh
nightsh / .zshrc
Created May 4, 2017 10:51
.zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="amuse-fork"
# Example aliases
@nightsh
nightsh / init.vim
Created September 13, 2016 17:03
init.vim
" --------------------------------------------------------------------
" Bundles
" --------------------------------------------------------------------
call plug#begin('~/.config/nvim/plugged')
Plug 'L9'
Plug 'python.vim'
Plug 'pythoncomplete'
Plug 'taglist.vim'
Plug 's3rvac/AutoFenc'
Plug 'sandeepcr529/Buffet.vim'
@nightsh
nightsh / init.vim
Created September 13, 2016 12:16
init.vim
" --------------------------------------------------------------------
" Bundles
" --------------------------------------------------------------------
call plug#begin('~/.config/nvim/plugged')
Plug 'L9'
Plug 'python.vim'
Plug 'pythoncomplete'
Plug 'taglist.vim'
Plug 's3rvac/AutoFenc'
Plug 'sandeepcr529/Buffet.vim'
$ make test
pylama collectors
pylama migrations
py.test
============================================================================================== test session starts ==============================================================================================
platform linux2 -- Python 2.7.12+, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/victor/Workbench/okfn/opentrials/collectors, inifile: pytest.ini
plugins: betamax-0.8.0, cov-2.3.1, pylama-7.0.9
collected 22 items
@nightsh
nightsh / opentrials-pybossa-test.csv
Created July 26, 2016 23:44
OpenTrials PyBossa test data set
something something else no idea what this is 1980 2016-07-07
probably a trial here this is the real thing same story here 1970 2016-06-06

Keybase proof

I hereby claim:

  • I am nightsh on github.
  • I am nightsh (https://keybase.io/nightsh) on keybase.
  • I have a public key whose fingerprint is 772B 3AD9 007D A980 330F BDCE 03EF 1B1B F206 F2FC

To claim this, I am signing this object: