Skip to content

Instantly share code, notes, and snippets.

#https://docs.python.org/2.7/howto/functional.html
#http://www.compileonline.com/execute_python_online.php
from __future__ import print_function
import operator
import itertools
print(list(itertools.islice(itertools.cycle('1234'), 2, 8)))
#for line in open('input.txt'):
# print(line)
<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
function mb_str_split($string,$string_length=1,$charset='utf-8') {
if(mb_strlen($string,$charset)>$string_length || !$string_length) {
do {

Header

Subheader

test test test

@d9k
d9k / inst_pecl.md
Created June 18, 2014 13:04
Установка Zend Opcache на php < 5.5

Установка Zend Opcache

Туториал на fideloper

# pecl - PHP Extension Community Library
$ sudo apt-get install -y php-pear

# зависимости построения
$ sudo apt-get install -y build-essential php5-dev
@d9k
d9k / .emacs
Last active August 29, 2015 14:02
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq indent-line-function 'insert-tab)
(require 'linum)
(global-set-key [M-delete] 'backward-kill-word)
(setq linum-format "%4d \u2502 ")
(global-linum-mode 1)
;;(require 'php-mode)
;;(require 'any-ini-mode)
(setq auto-mode-alist (cons '(".*\.cnd$" . any-ini-mode) auto-mode-alist))
set undo
set const
<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
function var_export54($var, $indent="") {
switch (gettype($var)) {
case "string":

css:

#single div.yes p:first-child:first-letter, #single div.yes span.drop {
    color: #000;
    float: left;
    font-family: 'Quattrocento',serif;
    font-size: 146px;
    line-height: 102px;

margin-bottom: -6px;

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
define(BR, '<br />'."\n");