Skip to content

Instantly share code, notes, and snippets.

@zsan
zsan / wego.rb
Created November 17, 2014 08:06
[
{
"price"=>811500.0,
"description"=>"Promo",
"deeplink"=>"http://www.wego.com/flights/providers/1",
"provider_code"=>"arenatiket.com",
"deeplink_params"=>{
"trip_id"=>"BDO:DPS:2014-11-29", "route"=>"BDO-DPS",
"search_id"=>"myP2XgoeTOCOd76_FQ2aDA",
"fare_id"=>"arenatiket.com:18"
{
'arrival_airport_filters' => [
{
'price_min' => '1559292',
'name' => 'Bandung',
'code' => 'BDO'
}
],
'departure_airport_filters' => [
{
#!/usr/bin/env perl
$VAR1 = {
'arrival_airport_filters' => [
{
'price_min' => '1027156.06',
'name' => 'Bandar Udara Halim Perdanakusuma',
'code' => 'HLP'
},
{
#!/usr/bin/env perl
use Spreadsheet::XLSX;
use Modern::Perl;
use Text::Iconv;
my $converter = Text::Iconv -> new ("utf-8", "windows-1251");
my $excel = Spreadsheet::XLSX -> new ('file.xlsx', $converter);
foreach my $sheet (@{$excel->{Worksheet}}) {
printf("Sheet: %s\n", $sheet->{Name});
mysql> select distinct city,count(*) as counter from yelp where website is not null and email_scraper_status=0 group by city order by counter desc limit 20;
+--------------+---------+
| city | counter |
+--------------+---------+
| new york | 2851 |
| austin | 1723 |
| seattle | 1542 |
| los angeles | 1377 |
| dallas | 1376 |
| san jose | 1186 |
package Mojolicious::Plugin::Pipeline::CSSCompressor;
use Mojo::Base 'Mojolicious::Plugin';
use CSS::Compressor 'css_compress';
sub register {
my ($self, $app) = @_;
# Register "css_compressor" filter
$app->filter(css_compressor => sub { css_compress shift });
[
{
"available_sections" : [
{
"credits" : "3.00",
"status" : "Closed",
"max" : "45",
"section" : " 002",
"instructor" : "Wasserman Evan",
"room" : "KUPF206KUPF206",
<table width="100%" cellpadding="2" border="0" id="proTab">
<tbody>
<tr class="odd">
<td><b>Brad G. Pelc</b></td>
</tr>
<tr class="even">
<td>Pelc Law Office</td>
</tr>
<tr class="odd">
<td>416 S High St<br>PO Box 7970<br>Belleville, IL 62222-7970</td>
db:
name: abn_data
host: localhost.localdomain
user: user_sss
pass: myPassword
processes:
asic_script.pl:
path: "/home/zak/ss-web/bin-faker/ass_script.pl"
abn_loader.pl:
path: "/home/zak/ss-web/bin-faker/abn_loader.pl"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>RSpec results</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Pragma" content="no-cache" />