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
name = Bartik2 | |
description = A flexible, recolorable theme with many regions. | |
core = 7.x | |
;定义父主题 | |
base theme = bartik | |
;添加新样式表 | |
stylesheets[all][] = css/bartik2.css | |
;覆盖样式, 不创建此文件或为空白文件 则意义同于 禁用该样式表 | |
stylesheets[all][] = css/style.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
<?php | |
//Base64 image data to image file | |
$a = array("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAP//AAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCADwATADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2+iiimIKKKKADvRRRQAUUUUAFFHWigAooooAOlFFFABRR2ooAKKKKACig0UAFFFFABRRRQAUUd6O9ABRRS0AJRRRQAUUUUAHeiiigAooo7UAFFFFABRRRQ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>计算器-Ext4js</title> | |
<script src="http://cdn.sencha.com/ext/gpl/4.2.1/ext-all.js"></script> | |
<link rel="stylesheet" href="http://cdn.sencha.com/ext/gpl/4.2.1/packages/ext-theme-gray/build/resources/ext-theme-gray-all.css"> | |
<style> | |
table{margin:20px 0 0 20px;font-size:20px;line-height:40px;border:1px solid #000;padding:3px;} | |
th{text-align:center;} |
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
<VirtualHost *:80> | |
ServerName codec.cc | |
DocumentRoot "E:\phpdemo\codec2i" | |
<Directory "E:\phpdemo\codec2i"> | |
Options FollowSymLinks | |
IndexOptions Charset=utf-8 | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> |
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> | |
<meta charset="UTF-8"> | |
<title>Extjs4.2 Progressbar Multi-segment</title> | |
<link rel="stylesheet" | |
href="http://cdn.sencha.com/ext/gpl/4.2.0/resources/ext-theme-neptune/ext-theme-neptune-all.css"/> | |
<script src="http://cdn.sencha.com/ext/gpl/4.2.1/ext-all.js"></script> | |
<script src="http://cdn.sencha.com/ext/gpl/4.2.1/ext-theme-neptune.js"></script> | |
<style type="text/css"> | |
#pb{ |
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
var now = new Date(); | |
var monthnumber = now.getMonth(); | |
var yearnumber = now.getFullYear(); | |
var count = 0; | |
var months = new Array(13); | |
months[0] = "Jan"; | |
months[1] = "Feb"; | |
months[2] = "Mar"; | |
months[3] = "Apr"; |
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 | |
$str = file_get_contents('C:\Users\huanle0610.HL-PC\Desktop\hk.json'); | |
$arr = json_decode($str, 1); | |
var_dump($arr['items'][0]); | |
$list =array(); | |
foreach($arr['items'] as $row) | |
{ | |
$list[] = sprintf('%s %s %s', $row['method'], $row['url'], $row['protocol']); | |
} |
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 | |
$file = '/var/log/nginx/YOURDOMAIN.error.log'; | |
$fd = fopen ($file, "r"); | |
while (!feof ($fd)) | |
{ | |
$buffer = fgets($fd, 4096); | |
$lines[] = $buffer; | |
} | |
fclose ($fd); | |
var_dump(count($lines)); |
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 | |
require_once 'autoload.php'; | |
require_once 'src/PhpRbac/Rbac.php'; | |
$rbac = new \PhpRbac\Rbac(); | |
function getPermissionUml(&$rbac) | |
{ | |
$arr = Jf::sql('select * from phprbac_permissions'); | |
echo "title Permissions", "\n"; | |
foreach($arr as $row) |
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
Ext.Loader.loadScript({ | |
url: ['resources/codemirror-5.26.0/lib/codemirror.js', 'resources/codemirror-5.26.0/lib/codemirror.css'], | |
onLoad: function () { | |
console.log('load ok', arguments); | |
}, | |
onError: function () { | |
console.error('load error', arguments); | |
} | |
}); |
OlderNewer