Skip to content

Instantly share code, notes, and snippets.

View dkdndes's full-sized avatar

PR dkdndes

View GitHub Profile
/*
* Mass Emailer Google Spreadsheet and Forms Script.
*
* Changelog:
* 19. June 2013
* - also copy CC and BCC from draft email
* 27. May 2013
* - bugfix, kudos to @stefanhoth: the col is called "Email"
* - show the quota left for the day (thanks to @stefanhoth)
* 30. Apr. 2013

Google Speech To Text API

Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST requests with voice file encoded in FLAC format, and query parameters for control.

Query Parameters

client
The client's name you're connecting from. For spoofing purposes, let's use chromium

lang
Speech language, for example, ar-QA for Qatari Arabic, or en-US for U.S. English

@dkdndes
dkdndes / gist:6638341
Created September 20, 2013 14:21
whatsapp user presense - Pasindu Perera <notifications@github.com> via mailing list. Note to myself.
How to subscribe to users presence via events. I use the following code
#!/usr/bin/python
from Yowsup.connectionmanager import YowsupConnectionManager
import time, datetime, sys, base64
target = "****"
uid = "%s@s.whatsapp.net" % target
@dkdndes
dkdndes / jsbin.azOTuPe.html
Created January 7, 2014 09:18
Example: Geolocation
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<p id="geo">Click the button to get your coordinates:</p>
<button onclick="getLocation()">Try It</button>
</body>
@dkdndes
dkdndes / jsbin.OTOyujoQ.css
Created January 7, 2014 09:31
Example: GoogleMaps Geolocation
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
@dkdndes
dkdndes / Falling-snowflakes-CSS-only.markdown
Last active January 2, 2016 20:49
A Pen by Jesse Taylor - saved as gist

Falling snowflakes CSS only

CSS animation of falling snowflakes using SASS

A Pen

License.

@dkdndes
dkdndes / jsbin.UhokUTu.html
Created January 10, 2014 18:22
SVG connected with connector - http://jsbin.com/UhokUTu/1/edit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>node connect test</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
body {
font-family: 'Lucida Grande', Verdana, Arial;
font-size: 12px;
}
#container {
position: relative;
height: 300px;
width: 300px;
margin: 50px 100px;
border: 2px solid blue;
@dkdndes
dkdndes / index.html
Last active January 4, 2016 21:49
Javascript autolist with search - Online at [Pen](http://codepen.io/dkdndes/pen/FyqEz)
<!DOCTYPE html>
<html>
<head>
<script src="http://listjs.com/no-cdn/list.js"></script>
<meta charset=utf-8 />
<title>Existing list</title>
</head>
<body>
<div id="users">
<input class="search" placeholder="Search" />
@dkdndes
dkdndes / javascript enable object.method
Last active January 20, 2017 15:05
Simplify jQuery $('#id').method() to just object.method()
$.objectify = function objectify(prefix) {
prefix = prefix || '';
$('[id]').each(function (j, item) {
window[prefix + item.id] = $('#' + item.id);
});
};