Skip to content

Instantly share code, notes, and snippets.

@smetronic
smetronic / NMEAParser.cs
Created February 13, 2019 10:02
C# NMEA Parser $GPRMC, $GPGSV, $GPGSA
using System;
using System.Globalization;
public class NmeaInterpreter
{
// Represents the EN-US culture, used for numers in NMEA sentences
public static CultureInfo NmeaCultureInfo = new CultureInfo("en-US");
// Used to convert knots into miles per hour
public static double MPHPerKnot = double.Parse("1.150779",
NmeaCultureInfo);
@fnky
fnky / ANSI.md
Last active May 9, 2024 15:36
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@rxaviers
rxaviers / gist:7360908
Last active May 9, 2024 15:35
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Klerith
Klerith / basic.html
Last active May 9, 2024 15:33
Páginas que usaremos en la sección de Formularios Reactivos
<h2>Reactivos: Básicos</h2>
<hr>
<div class="row">
<div class="col">
<form autocomplete="off">
<!-- Campo de producto -->
<div class="mb-3 row">
-module(compress_ecdsa_publickey).
-export([compress_ecdsa_publickey/1, test/0]).
compress_ecdsa_publickey(UncompressedPublicKey) ->
%% To binary
UncompressedPublicKeyBin = binary:decode_hex(list_to_binary(UncompressedPublicKey)),
%% Check that the uncompressed public key is valid
case size(UncompressedPublicKeyBin) of
65 ->
%% Remove the prefix (first byte) from the public key
@leoherzog
leoherzog / code.gs
Created September 25, 2020 18:57
Google Drive Photocopier - Make lots of copies of a file in Drive
// (copy this into a new Apps Script project - https://script.google.com/)
// Hello!
//
// To make lots of copies of a thing in Google Drive,
// put the ID or URL of the Google Drive file here:
//
var fileToCopy = "https://jamboard.google.com/d/1jwdBuEjFtGvAjaRIsxXkR-nm-EgL2cES8UGOjREvdj0/viewer";
//
// Quotes are important! Example:
// var fileToCopy = "https://docs.google.com/document/d/1TIDOiUpPiWNqKqduKlbtm2O4jgFIAPrxuz_JFWzod9s/edit?usp=sharing";
@leoherzog
leoherzog / code.gs
Last active May 9, 2024 15:33
Google Drive Folder Change Notifier
/**
* This script checks a Google Drive folder for any new files and/or folders added to it, and emails you if there are changes!
* To get started:
* 1. Go to script.google.com and log in as the user that you want to do the automated "checking".
* 2. Click "New Project".
* 3. Rename the project at the top from "Untitled project" to something else (ex. "Folder Change Notifier") and copy/paste this code over the default "myFunction" stuff that's currently there.
* 4. Add the folder IDs to the "foldersToCheck" array on line 16 below, in quotes, comma-separated. It should look something like:
* const foldersToCheck = ["1J5d673365fd944334be51d4163cd8294d", "1c5d63119b730c8224a218222e5faedcad"];
* 5. Add the email address that you want to notify for when there's changes on line 18 below. It should look something like:
* const emailToNotify = "name@gmail.com";
@roxygen
roxygen / readme.txt
Created October 7, 2015 09:12
arc_conv usage instruction by w8m.
Руководство по использованию:
[spoiler]При запуске без параметров программа будет показывать диалог открытия файла, если выбранный файл является архивом который поддерживается, то его содержимое будет распаковано в rar архив без сжатия. Графические (и некоторые другие) файлы найденные в архиве будут преобразованы в более удобный формат для просмотра (tga).
В процессе распаковки архива показывается окошко в котором видно текущий прогресс, распаковку можно остановить если нажать Ctrl-C или Alt-F4 когда окно в фокусе.
Для открытия некоторых архивов нужно обязательное указание типа архива и/или иных опций в командной строке.
Основные опции:
Все опции имеют один параметр, если он содержит знак пробела, то его нужно заключать в двойные кавычки.
(--out, -o) задание формата вывода: dir - распаковка файлов в директорию (по умолчанию c 46 релиза), rar - rar без сжатия, tar и utar - tar контейнер в shift-jis или utf-8 кодировке для имен файлов.
(--fmt, -f) указание типа архива или имени модуля.
(--conv, -с) управление к
@leoherzog
leoherzog / code.gs
Created August 9, 2021 19:58
Google Shared Drive Viewers Automator
/**
* @OnlyCurrentDoc
* 1. Create a new Google Sheet (https://sheet.new) and remove all but one column
* 2. Add all of the email addresses in Column A that you'd like to have as viewers on the Shared Drive
* 3. Click Tools → Script Editor and copy/paste all of this code into the editor
* 4. Edit the Shared Drive ID on line 10 (https://drive.google.com/drive/folders/{Shared Drive ID})
* 5. Click "▷ Run" in the top toolbar, allow authorization, and you're done!
*/
const sharedDriveId = '0AAt_DfuXH73UUA9dVp';
@apisandipas
apisandipas / share-urls.md
Last active May 9, 2024 15:31 — forked from chrisjlee/drupal-views-share-global-text-field
Share url's for Facebook, Twitter, Pinterest and Linkedin with just get variables

Creating share buttons with just URL's

Twitter

http://twitter.com/share?text=<TITLE>&url=<URL>

E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com

Facebook

http://www.facebook.com/sharer.php?u=&amp;p[title]=