Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile
@jerkovicl
jerkovicl / .hyper.js
Created May 20, 2019 11:11 — forked from robertcoopercode/.hyper.js
Hyper Configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@jerkovicl
jerkovicl / startup-tasks.txt
Created November 7, 2018 08:47 — forked from TomKearney/startup-tasks.txt
CMDER initialise with four windows
* -cur_console:d:c:\dev\projects\plutus -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s1T50H -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s1T50V -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s2T50V -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
@jerkovicl
jerkovicl / findall_elements_deep.js
Created April 16, 2018 18:41 — forked from ebidel/findall_elements_deep.js
Finds all elements on the page, including those within shadow dom.
/**
* @author ebidel@ (Eric Bidelman)
* License Apache-2.0
*/
/**
* Finds all elements on the page, inclusive of those within shadow roots.
* @param {string=} selector Simple selector to filter the elements by. e.g. 'a', 'div.main'
* @return {!Array<string>} List of anchor hrefs.
*/
@jerkovicl
jerkovicl / ngrxintro.md
Created September 25, 2017 19:34 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

[Benchmark(Description = "ImageSharp Resize")]
public ImageSharpSize ResizeImageSharp()
{
ImageSharpImage image = new ImageSharpImage(Width, Height);
image.Resize(ResizedWidth, ResizedHeight);
return new ImageSharpSize(ResizedWidth, ResizedHeight);
}
@jerkovicl
jerkovicl / curlWinCMDSlackNotification.bat
Created October 7, 2016 19:39 — forked from sirkirby/curlWinCMDSlackNotification.bat
Send a slack notification from a windows command prompt using curl
curl -k -g -X POST -d "payload={\"text\":\"my important bot notification\", \"channel\":\"#monitoring\", \"username\":\"computer-bot\", \"icon_emoji\":\":computer:\"}" https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XxXxXxXxXXXxxXXXxxx
@jerkovicl
jerkovicl / choco.mirrorto.lftp
Created August 4, 2016 14:20 — forked from nwgat/choco.mirrorto.lftp
choco.mirrorto.lftp
set sftp:auto-confirm yes
set sftp:connect-program 'ssh'
open sftp://user:password@site:port
mirror -R --verbose --use-pget-n=8 -c /cygdrive/driveletter/folder /remote/path
@jerkovicl
jerkovicl / choco.mirrorfrom.lftp
Created August 4, 2016 14:20 — forked from nwgat/choco.mirrorfrom.lftp
choco.mirrorfrom.lftp
set sftp:auto-confirm yes
set sftp:connect-program 'ssh'
open sftp://user:password@site:port
mirror --verbose --use-pget-n=8 -c /remote/path /cygdrive/driveletter/folder
function Get-LongLat
{
[CmdletBinding()]
param
(
[Parameter(
Mandatory = $true,
ValueFromPipelineByPropertyName = $true
)]
[string[]]$ZipCode