This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const axios = require('axios'); | |
const FormData = require('form-data'); | |
const fs = require('fs'); | |
const filePath = __dirname + '/../accept-http-post-file/cookie.jpg'; | |
fs.readFile(filePath, (err, imageData) => { | |
if (err) { | |
throw err; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
my $lol = bless { string => "test_string" }; | |
$lol->{cycle}{reference}[0] = $lol; | |
my $lol1 = bless []; | |
$lol1->[0]{yet}{another}{cycle}{reference} = $lol1; | |
use strict; | |
require Devel::Gladiator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'base64' | |
# converts attached PNGs into base64 strings | |
# Eg | |
# <img src="my.png" /> to <img src="data:image/png;base64,..." /> | |
class To64Html | |
def initialize(path) |