Skip to content

Instantly share code, notes, and snippets.

View sarkrui's full-sized avatar
🚀
Kicking off

Sark sarkrui

🚀
Kicking off
View GitHub Profile
@ShawnHymel
ShawnHymel / magic_wand_standardized_inference.ino
Created October 10, 2022 19:38
Edge Impulse magic wand inference example
/**
* Magic Wand Inference Demo
*
* Attach a button to pin 2. Press button to start collection. Raw data will be
* collected and fed to the impulse for inference. Inference results are printed
* to the serial terminal.
*
* Author: Shawn Hymel (EdgeImpulse, Inc.)
* Date: October 10, 2022
* License: Apache-2.0 (apache.org/licenses/LICENSE-2.0)
@heyjoeway
heyjoeway / FreeZoteroOverleaf.md
Last active November 23, 2022 06:33
Free Zotero "integration" in Overleaf

Get a list of collections using:

https://api.zotero.org/users/[USER ID]/collections?key=[API KEY]

Where:

Find the "key" attribute corresponding to the collection you want to use. This is your [COLLECTION ID]. Then, in Overleaf, create a new file. Select "From External URL", then insert the following URL:

@damien1
damien1 / cld-response.html
Last active August 10, 2021 17:30
Hugo shortcode responsive image using Cloudinary - how to use see https://bit.ly/2YYrjRd
<!-- for how to use visit https://bit.ly/2YYrjRd -->
{{ $image := .Get 0 }}
{{ $alt := .Get 1 }}
{{ $width := .Get 2 | default "w_auto" }}
{{ $style := .Get 3 | default "width:90%" }}
<img alt="{{ $alt }}" title="{{ $alt }}" data-src="{{ $.Site.Params.cloudinary_base_url }}/{{ $width }},c_scale,f_auto,q_auto,dpr_auto{{ $image}}" class="cld-responsive border" style="{{ $style }}">
@dikiaap
dikiaap / git-io-custom-url.md
Last active August 5, 2023 04:21
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@pavelbinar
pavelbinar / extract-subtitles-from-mkv.md
Last active December 24, 2023 12:10 — forked from bmaeser/subtitle-extract.txt
Extract subtitles from .mkv files on Mac OS X
@jampajeen
jampajeen / LC_CTYPE.txt
Created November 21, 2015 13:02
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
.fadeinDown {
-webkit-animation: fadeInDown 500ms ease-in-out; /* Chrome, Safari, Opera */
animation: fadeInDown 500ms ease-in-out;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes fadeInDown {
0% {
@omgmog
omgmog / gist:33ec177eea6b78adbaf3
Created May 28, 2014 14:28
Convert an m4v to gif with ffmpeg
ffmpeg -i input.m4v -pix_fmt rgb24 -r 10 -y -s [width]x[height] output.gif
@ijy
ijy / sublime-text-3-setup.md
Last active January 15, 2024 14:21
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following: