Skip to content

Instantly share code, notes, and snippets.

@dbajpeyi
dbajpeyi / main.c
Created April 25, 2022 22:59
Playback/Write wav with miniaudio
#define MA_DEBUG_OUTPUT
#define MINIAUDIO_IMPLEMENTATION
#include <stdlib.h>
#include <stdio.h>
#include "minaudio/miniaudio.h"
#define ERROR_ARGS 1
#define ERROR_DECODER_INIT 2
#define ERROR_DEVICE_INIT 3
@dbajpeyi
dbajpeyi / angular-bs-timepicker.js
Created October 24, 2013 10:22
AngularJS timepicker directive
appDirective.directive('timePicker',function(){
return {
restrict : 'E',
require: ['ngModel'],
scope :{
ngModel: '='
},
replace: true,
template:
'<div class="input-group bootstrap-timepicker">' +
@dbajpeyi
dbajpeyi / angular-bs-datepicker.js
Last active December 26, 2015 10:09
A simple angularjs directive for bootstrap datepicker
var appDirective = angular.module('directives',[]);
appDirective.directive('datePicker', function() {
return {
restrict: 'E',
require: ['ngModel'],
scope: {
ngModel: '='
},
replace: true,