Skip to content

Instantly share code, notes, and snippets.

Avatar

Oshane Bailey b4oshany

View GitHub Profile
@christopheranderton
christopheranderton / montserrat-font-family-styles.css
Last active Mar 2, 2021
Montserrat Font Family Styles (Montserrat, Montserrat Alternates, Montserrat Subrayada, Montserrat Arabic). Weights, Font feature settings, Download sources…
View montserrat-font-family-styles.css
/* == Montserrat Font Family Styles == */
/* @group Montserrat
-------------------------------------------------------------- */
/* = Weights Montserrat
-------------------------------------------------------------- */
.thin {
@zakkak
zakkak / .git-commit-template
Last active Apr 11, 2022 — forked from adeekshith/.git-commit-template.txt
This commit message template that helps you write great commit messages and enforce it across your team.
View .git-commit-template
# [<tag>] (If applied, this commit will...) <subject> (Max 72 char)
# |<---- Preferably using up to 50 chars --->|<------------------->|
# Example:
# [feat] Implement automated commit messages
# (Optional) Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# (Optional) Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@aufa
aufa / mysql_backup_import.php
Last active Apr 23, 2021
PHP function to backup and import database using MYSQLI
View mysql_backup_import.php
<?php
/**
* @author awan < nawa (at) yahoo (dot) com >
*
*/
/**
* Function to build SQL /Importing SQL DATA
*
@toutpt
toutpt / storage.py
Last active Dec 13, 2018
The best way to store settings/data using zope annotations
View storage.py
from zope.annotation.interfaces import IAnnotations
from persistent.list import PersistentList
from Products.CMFCore.utils import getToolByName
FAVBY = "collective.favoriting.favoritedby"
def setupAnnotations(context):
"""
set up the annotations if they haven't been set up
@daurnimator
daurnimator / webrtc.js
Last active Apr 11, 2022
Playing with WebAudio and WebRTC
View webrtc.js
// Browser compat
window.AudioContext = window.AudioContext || window.webkitAudioContext;
window.RTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection;
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia;
var key = window.location.hash.substring(1);
var audio_context = new AudioContext();
var local_output = audio_context.createMediaStreamDestination();