Skip to content

Instantly share code, notes, and snippets.

View Suvink's full-sized avatar
🏢
Working from office

Suvin Nimnaka Suvink

🏢
Working from office
View GitHub Profile
@yangshun
yangshun / youtube-vimeo-url-parser.js
Last active June 14, 2023 22:27
YouTube Vimeo URL Parser
function parseVideo (url) {
// - Supported YouTube URL formats:
// - http://www.youtube.com/watch?v=My2FRPA3Gf8
// - http://youtu.be/My2FRPA3Gf8
// - https://youtube.googleapis.com/v/My2FRPA3Gf8
// - Supported Vimeo URL formats:
// - http://vimeo.com/25451551
// - http://player.vimeo.com/video/25451551
// - Also supports relative URLs:
// - //player.vimeo.com/video/25451551
@rehrumesh
rehrumesh / mm.c
Created May 31, 2015 13:41
Matrix multiplication sequential code
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <assert.h>
#define RANDLIMIT 5 /* Magnitude limit of generated randno.*/
#define N 4 /* Matrix Size */
#define NUMLIMIT 70.0
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active July 29, 2024 19:50
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@vikramdurai
vikramdurai / gocalc.go
Last active July 15, 2024 13:42
A simple calculator made with Go
package main
import (
"bufio"
"errors"
"fmt"
"os"
"strconv"
"strings"
)
@simonwep
simonwep / APIDocExample.md
Last active February 1, 2023 06:45
An API-Documentation example README

API Documentation Example

This API uses POST request to communicate and HTTP response codes to indenticate status and errors. All responses come in standard JSON. All requests must include a content-type of application/json and the body must be valid JSON.

Response Codes

Response Codes

200: Success
400: Bad request
401: Unauthorized
404: Cannot be found
@Suvink
Suvink / helloThere.png
Last active October 22, 2023 06:08
Hi There! This is me...
helloThere.png
🦠 Stats for 2022-12-06 08:46:40
🌎 Global Cases: 249461042 💀 Global Deaths: 5047622
🇱🇰 Local Cases: 671711 🇱🇰 Local Hospitalized: 0
🌎 Global Recovery: ██████████████████░░ 90%
🇱🇰 Local Recovery: ███████████████████▍ 97%