Skip to content

Instantly share code, notes, and snippets.

Avatar
📝
Working mostly on writing docs these days

Tomomi ❤ Imura girliemac

📝
Working mostly on writing docs these days
View GitHub Profile
@girliemac
girliemac / list_of_articles.md
Last active Aug 15, 2022
TECHNICAL BLOGS, TUTORIALS, and DOCUMENTATIONS
View list_of_articles.md

Technical Blog, Tutorials, and Docs

This is a list of my articles, mostly written for employers, and some have been done in my own time.

Magazine Columns (as an Author)

Books (as a Technical Editor)

@girliemac
girliemac / slackapi-async-await.js
Last active Mar 9, 2021
Examples of calling Slack Web API method via HTTP with axios
View slackapi-async-await.js
const axios = require('axios');
const qs = require('qs');
const apiUrl = 'https://slack.com/api';
const greet = () => {
let messageArgs = {
token: process.env.SLACK_ACCESS_TOKEN,
channel: '#cats',
text: ':wave: Hello, welcome to the channel!',
@girliemac
girliemac / keybase.md
Last active Jan 11, 2021
Reset on 1/10/2021
View keybase.md

Keybase proof

I hereby claim:

  • I am girliemac on github.
  • I am girlie_mac (https://keybase.io/girlie_mac) on keybase.
  • I have a public key whose fingerprint is D846 171A 2FF9 6E98 7FC5 D01B 1E07 2DBB EBB4 7EC7

To claim this, I am signing this object:

View slack-emoji-list.json
{
"100": "1f4af",
"1234": "1f522",
"interrobang": "2049",
"tm": "2122",
"information_source": "2139",
"left_right_arrow": "2194",
"arrow_up_down": "2195",
"arrow_upper_left": "2196",
"arrow_upper_right": "2197",
@girliemac
girliemac / social-meta.html
Last active Apr 25, 2018
Social Meta for Twitter and Facebook
View social-meta.html
<title>Page Title. up to 60-70 chars</title>
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Twitter Card data (Large image) -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:creator" content="@author_handle">
<meta name="twitter:title" content="Title Here">
<meta name="twitter:description" content="Page description less than 200 characters">
<meta name="twitter:image" content="http://www.example.com/image.jpg">
View keybase.md

Keybase proof

I hereby claim:

  • I am girliemac on github.
  • I am girlie_mac (https://keybase.io/girlie_mac) on keybase.
  • I have a public key ASAG2LRi_yJrII2IZXk3GT-hC11s4UuybUhqPUnG7XNB6Ao

To claim this, I am signing this object:

View greeting.json
[
{
"action": "talk",
"voice_name": "Kendra",
"text": "Yo, you are listening to a text-to-speech call made with Nexmo's Voice API. Bye now."
}
]
View ppap.json
[
{
"action": "talk",
"voiceName": "Chipmunk",
"text": "Pee, pee, ei, pee. I have a pen, I have an apple. Uh! Apple pen! I have a pen, I have pineapple. Uh! Pineapple pen!. Apple-Pen, Pineapple-Pen. Uh! Pen-Pineapple-Apple-Pen. Pen-Pineapple-Apple-Pen"
}
]
@girliemac
girliemac / 01.txt
Created Oct 25, 2016
Snippets for my Medium Post: Creating a Slack Command Bot from Scratch with Node.js & Distribute It
View 01.txt
command=/httpstatus
text=302
response_url=https://hooks.slack.com/commands/1234/5678 ...
@girliemac
girliemac / geo.js
Last active Oct 14, 2017
Geohashing
View geo.js
var lat, lon;
if ('geolocation' in navigator) {
navigator.geolocation.getCurrentPosition(function(position) {
lat = position.coords.latitude;
lon = position.coords.longitude;
console.log('lat: ' + lat);
console.log('lon: ' + lon);
console.log('geohash: ' + geohash(lat, 0) + '' + geohash(lon, 0));