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
use v5.14; | |
use warnings; | |
use Test::More; | |
use Test::Mojo; | |
use FindBin; | |
require "$FindBin::Bin/../webapp.pl"; | |
my $t = Test::Mojo->new; |
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
use v5.14; | |
use Mojo::IOLoop; | |
use Data::Dump; | |
my %opts = (address => '0.0.0.0', port => 1514, map { split /=/, $_, 2 } @ARGV); | |
Mojo::IOLoop->server(%opts, sub { | |
my ($loop, $stream, $id) = @_; |
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
noauth |
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
{# templates/admin/change_list.html #} | |
{% extends "admin/base_site.html" %} | |
{% load i18n admin_urls admin_static admin_list values_result_list %} | |
{% block extrastyle %} | |
{{ block.super }} | |
<link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}" /> | |
{% if cl.formset %} | |
<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" /> |
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
#include <stdio.h> | |
#include <string.h> | |
int count_stickers(char *word) { | |
int f = 0, a = 0, c = 0, e = 0, b = 0, o = 0, k = 0; | |
int max = 0; | |
int i = strlen(word); | |
while (i--) { |
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
#### Contents of the preconfiguration file (for jessie) | |
### Localization | |
# Preseeding only locale sets language, country and locale. | |
d-i debian-installer/locale string pl_PL | |
# The values can also be preseeded individually for greater flexibility. | |
#d-i debian-installer/language string en | |
#d-i debian-installer/country string NL | |
#d-i debian-installer/locale string en_GB.UTF-8 | |
# Optionally specify additional locales to be generated. |
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
# ~/.local/share/mc/go.syntax | |
# | |
# requires ~/.config/mc/mcedit/Syntax with lines: | |
# file ..\*\\.(go)$ Go\sSource | |
# include go.syntax | |
context default | |
# keywords | |
keyword whole break brightblue | |
keyword whole case brightblue |
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 perl | |
package My::Mojo::IOLoop; | |
use Mojo::Base 'Mojo::IOLoop'; | |
use Scalar::Util 'weaken'; | |
sub client { | |
my ($self, $cb) = (_instance(shift), pop); |
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
class lazy(object): | |
def __init__(self, default=None, name=None): | |
self.default = default | |
self.name = name | |
def __get__(self, obj, objtype): | |
if obj is None: | |
return self | |
if callable(self.default): | |
default = self.default(obj if obj is not None else objtype) |