Skip to content

Instantly share code, notes, and snippets.

View maurelio1234's full-sized avatar

Marcos Almeida maurelio1234

View GitHub Profile
@maurelio1234
maurelio1234 / gist:69986f5c76ebcc7dec7af81a34bfac25
Created May 21, 2020 11:43
Cannot insert emoji in emacs-slack
Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1)
#f(compiled-function (emoji data) #<bytecode 0x158bf4c0a8f5>)("🍳 - Cooking (unicode)")
all-completions("" ("🍳 - Cooking (unicode)" ":flag_se: - Sweden (github)" ":kimono: - Kimono (github)" ":black-joker: - Playing Card Black Joker (github)" ":flag-gy: - Guyana (github)" ":bw: - Botswana (github)" ":gn: - Guinea (github)" "↔ - Left Right Arrow (unicode)" ":martial_arts_uniform: - Martial Arts Uniform (git..." ":flag-ba: - Bosnia And Herzegovina (github)" "🚆 - Train (unicode)" ":handball: - Handball (github)" ":runner-tone5: - Runner - Tone 5 (github)" "4⃣ - Keycap Digit Four (unicode)" ":family_wwbb: - Family (woman,woman,boy,boy) (gith..." ":boy: - Boy (github)" ":large-orange-diamond: - Large Orange Diamond (git..." ":call_me_hand_tone2: - Call Me Hand - Tone 2 (gith..." "♦ - Black Diamond Suit (unicode)" ":passport_control: - Passport Control (github)" ":person-with-pouting-face-tone2: - Person With Pou..." "🕜 - Clock Face One-thirty (
@maurelio1234
maurelio1234 / graphical-elements.el
Created April 13, 2019 17:04
shows and hide emacs graphical elements
(defvar me/hidden-mode-line-format nil)
(defun me/hide-graphical-elements ()
(interactive)
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(setq me/hidden-mode-line-format mode-line-format)
(setq mode-line-format nil))
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "String",
"defaultValue": "eastus"
},
"resourceGroupName": {
"type": "String",
@maurelio1234
maurelio1234 / template.json
Last active November 21, 2017 17:18
Azure template for XComponent Examples VM
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "String",
"defaultValue": "eastus"
},
"resourceGroupName": {
"type": "String",
@maurelio1234
maurelio1234 / PriorityUnboundedMailboxTest.cs
Created May 21, 2017 12:51
UnboundedPriorityMailbox doesn't keep message reception order
using System;
using Akka.Actor;
using Akka.Configuration;
using Akka.Dispatch;
using Akka.Util;
using NUnit.Framework;
using UntypedActor = Akka.Actor.UntypedActor;
namespace TestAkkaPriority
{
@maurelio1234
maurelio1234 / clipboard_to_qrcode.py
Last active August 29, 2015 14:11
adding comment
# for pythonista on ipad
# uses https://github.com/lincolnloop/python-qrcode
from qrcode.main import QRCode
import clipboard
import console
text = clipboard.get()
if text:
@maurelio1234
maurelio1234 / italianbot.py
Last active August 29, 2015 14:10
ident fixes
#coding: utf-8
from sys import exit
import random
import re
from datetime import datetime
random.seed()
firstexchange = True
askedquestion = None