Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>This is an recorded message to remind you that you owe our company a lot of money. Please pay as soon as possible.</Say>
</Response>
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman">Thanks for trying our documentation. Enjoy!</Say>
<Play>http://demo.twilio.com/docs/classic.mp3</Play>
</Response>
@oitozero
oitozero / invoices_dataset.json
Created September 16, 2020 22:54
Data Engineer - Invoices Dataset
[
{
"Date": "2016-11-26T00:00:00.000Z",
"DueDate": "2016-12-10T00:00:00.000Z",
"Status": "AUTHORISED",
"SubTotal": 750,
"TotalTax": 150,
"Total": 900,
"UpdatedDateUTC": "2016-11-26T23:17:35.440Z",
"CurrencyCode": "BAM",
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 10G 7.4G 2.7G 74% /
$ uname -a
Linux da0 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ hostnamectl
Static hostname: da0
Icon name: computer-vm
"InvoiceID" : "...",
"Payments" : [
{
"PaymentID" : "...",
"Date" : ISODate("2016-06-06T00:00:00Z"),
"Amount" : ...,
"Reference" : "",
"CurrencyRate" : 1,
"HasAccount" : false,
"HasValidationErrors" : false
//
// create table
var tbl = document.createElement("table");
var tblBody = document.createElement("tbody");
// cells creation
for (var j = 0; j <= 10000; j++) {
// table row creation
var row = document.createElement("tr");
for (var i = 0; i < 20; i++) {
var cell = document.createElement("td");
@oitozero
oitozero / controllers.users.js
Last active August 29, 2015 14:07
igloo: knex/bookshelf example
// # users
var _ = require('underscore')
var _str = require('underscore.string')
_.mixin(_str.exports())
exports = module.exports = function(User) {
function index(req, res, next) {
new User()
@oitozero
oitozero / nrFormat
Created May 29, 2014 11:10
ng filter big numbers (1000 becames 1K)
this.app = angular.module('myApp', []);
this.app.filter("nrFormat", function() {
return function(number) {
var abs;
if (number !== void 0) {
console.log(number);
abs = Math.abs(number);
if (abs >= Math.pow(10, 12)) {
number = (number / Math.pow(10, 12)).toFixed(1) + "t";