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
# Networking | |
my $dtf = $MODEL->storage->datetime_parser; | |
my $start_period = DateTime->now; | |
my $end_period = $start_period->add(months => 3, days => 1); | |
my @networking = $MODEL->resultset('Content')->search( | |
{ types => {like => '%event%'}, | |
tags => {like => '%networking%'}, | |
start_datetime => { |
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
### After 5 REST API | |
get '/rest/get/:amount/:sort/:results' => | |
[amount => qr/\w+/, sort => qr/\w+/, results => qr/\w+\.json/] => sub { | |
my $self = shift; | |
my $json = Mojo::JSON->new; | |
my (%query, %sorting); |
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
''' Appname Template ''' | |
if re.match('.*APPNAME_TEMPLATE EXISTS', line): | |
if os.path.exists('%s/templates/app-inp-%s.xml' % (app_config, app_name)): | |
appname_template = open('%s/templates/app-inp-%s.xml' % (app_config, app_name), 'r') | |
for template_line in appname_template.readlines(): | |
if enabled is True: |
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
if ($self->req->upload('photos')) { | |
push @photos, | |
process_photo($self->req->upload('photos'), $new_content->id); | |
$MODEL->resultset('Content')->search({id => $new_content->id}) | |
->update({photos => "@photos"}) | |
if scalar @photos >= 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
root@ip-10-0-238-38:/home/ubuntu# x84 | |
Traceback (most recent call last): | |
File "/usr/local/bin/x84", line 5, in <module> | |
from pkg_resources import load_entry_point | |
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module> | |
working_set = WorkingSet._build_master() | |
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master | |
ws.require(__requires__) | |
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require | |
needed = self.resolve(parse_requirements(requirements)) |
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
"objects": [ | |
{ | |
"kpis": [ | |
{ | |
"2016": { | |
"plants": [ | |
{ | |
"warren": { | |
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
setTimeout(function() { | |
$("html, body").animate({ | |
scrollTop: 848 | |
}, 1000) | |
}, 4000) |
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 php | |
<?php | |
require './simple_html_dom.php'; | |
$html = file_get_html('https://www.bleulibellule.com/'); | |
/* Links */ |
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
<?php | |
//namespace simplehtmldom_1_5; | |
/** | |
* Website: http://sourceforge.net/projects/simplehtmldom/ | |
* Acknowledge: Jose Solorzano (https://sourceforge.net/projects/php-html/) | |
* Contributions by: | |
* Yousuke Kumakura (Attribute filters) | |
* Vadim Voituk (Negative indexes supports of "find" method) |
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 php | |
<?php | |
require './simple_html_dom.php'; | |
/* Bleu Libellue */ | |
$html = file_get_html('https://www.bleulibellule.com/'); |
OlderNewer