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/perl | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
use JSON; | |
my $query = 'Norway'; | |
my $ua = LWP::UserAgent->new; | |
my $account_key = 'VHqbZUljwrsMUrVUBjTMPVD1SaY4aReHQYBPtk8dcGg='; |
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
<html> | |
<head> | |
<script> | |
function a(b) { | |
this.t = {}; | |
this.tick = function(b, f, d) { | |
this.t[b] = [void 0 != d ? d : (new Date).getTime(), f] | |
}; | |
this.tick("start", null, b) |
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
Auto-guessed '5.19.9' | |
2 | |
3 Beginning of configuration questions for perl5. | |
4 | |
5 Checking echo to see how to suppress newlines... | |
6 ...using \c | |
7 The star should be here-->* | |
8 | |
9 First let's make sure your kit is complete. Checking... | |
10 Looks good... |
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
// in config.json ------------------------------------------------------------------ | |
{ | |
"global": { | |
"dev": { | |
"feedback_mailto": "b@abctech-thailand.com", | |
"feedback_api": "http://kua.abcmedia.no/feedback/send" | |
}, | |
"qa": { | |
"feedback_mailto": "mobile-team@startsiden.no", | |
"feedback_api": "http://kua.abcmedia.no/feedback/send" |
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
ti build -p ios -T dist-adhoc -R <certificate> -P <provisioning id> -O <output path> | |
sample: | |
ti build -p ios -T dist-adhoc -R "ABC Startsiden AS (R87Q7ZL5GR)" -P 462F2756-4BCA-4AEC-B43E-D7C2F9BD3AFB -O /Users/B-Pussaaon/Desktop/ |
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
#!/bin/bash | |
cd $APPIUM_HOME | |
node . &> /dev/null & | |
cd $HOME/Works/Workspaces/mobile-team/startsiden-app/ | |
ti build -p ios -f -b | |
ti build -p android -f -b | |
rm -rf test/appium/build/ios/* | |
rm -rf test/appium/build/android/* | |
cp -RfX build/iphone/build/Debug-iphonesimulator/* test/appium/build/ios/ |
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/perl -w | |
use strict; | |
use CGI qw(:all); | |
use CGI::Carp qw(fatalsToBrowser); | |
my($requested_color, $old_color, $color_cookie) = ("",""); | |
$old_color="blue"; # Default value | |
# Is there a new color requested? | |
if(defined param('color')) { | |
$requested_color = param('color'); | |
} |
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
package RomanConverter; | |
use Moose; | |
use POSIX qw(floor); | |
use String::Util qw(trim); | |
use v5.10; | |
has 'NUMBERS_TO_ROMANS' => ( | |
is => 'bare' , | |
isa => 'Tree' , | |
weak_ref => 1 , |
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
for my $method (qw(build_date bought_date)) { | |
Sub::Install::install($_ => sub { | |
my ($self, $input_arg) = @_; | |
return format_string($self->$method); | |
}); | |
} | |
sub apejens {} |
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
########################### config yml ########################### | |
--- | |
name: SearchResponsive::EchoSlam | |
EchoSlam: | |
my_config: | |
channel_name: 'my_config_yml_channel' | |
########################### model ########################### | |
package SearchResponsive::EchoSlam; | |
use Moose; |
OlderNewer