Skip to content

Instantly share code, notes, and snippets.

View jellyninjadev's full-sized avatar

Vlad Rimsha jellyninjadev

View GitHub Profile
call plug#begin()
Plug 'williamboman/mason.nvim'
Plug 'williamboman/mason-lspconfig.nvim'
Plug 'jose-elias-alvarez/null-ls.nvim'
"Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'github/copilot.vim'
Plug 'hrsh7th/cmp-copilot'
Plug 'joshdick/onedark.vim'
// can run in https://www.typescriptlang.org/play
type Payload = {
results?: {
aggregation?: {
pie_aggregation?: {
items?: {
buckets: [{
key: string
filtered: {

Keybase proof

I hereby claim:

  • I am senhorbardell on github.
  • I am senhorbardell (https://keybase.io/senhorbardell) on keybase.
  • I have a public key ASDDuT8LkIpoOd258iAgWSsgFBuNpumcFdDl7jGBwxY3xwo

To claim this, I am signing this object:

@jellyninjadev
jellyninjadev / DigestService.php
Created February 5, 2016 14:57
Emails processing
<?php
class DigestService {
private $events;
function __construct($events) {
$this->events = $events;
}
function stack(\Closure $func) {
canvas1 = document.getElementById("canvas1");
surface1 = canvas1.getContext("2d");
image1 = new Image();
canvas2 = document.getElementById("canvas2");
surface2 = canvas2.getContext("2d");
image2 = new Image();
image1.onload = function () {
<?php
/* ImageDiff --------------------------------------------
Class to identify difference between two images.
Difference is identified in comparing the delta between average color.
Based on idea from:
http://www.hackerfactor.com/blog/?/archives/432-Looks-Like-It.html
call function Diff to get an Array with the results
Diff Description:
<?php
function dct1D($in){
$results = array();
$N = count($in);
for($k = 0; $k < $N; $k++){
$sum = 0;
for($n = 0; $n < $N; $n++){
$sum += $in[$n] * cos($k * pi() * ($n + 0.5) / ($N));
}
@jellyninjadev
jellyninjadev / ctags.setup
Created October 19, 2015 12:48 — forked from nazgob/ctags.setup
ctags setup on mac
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
@jellyninjadev
jellyninjadev / vertical-rhythm.styl
Created October 9, 2015 18:40 — forked from zspecza/vertical-rhythm.styl
Vertical Rhythm module from Compass ported to Stylus
// Vertical Rhythm ported from SASS/Compass
// Works exactly as before, with four exceptions:
// 1. rhythm() is a mixin, $rhythm() is a function. Stylus doesn't differentiate between same-name mixins and functions
// 2. All of the variables you're used to lack the dollar sign ($) prepend.
// 3. debug-vertical-alignment uses a temporary online image solution via http://basehold.it
// 4. There is no h-borders alias. Use horizonatal-borders instead.
// The base font size.
base-font-size ?= 16px
app.get('*', function(request, response){
response.sendfile('./public/index.html');
});