webproger > cheat sheets
 
• PHP manual
1626#2687 SBLNGS CHLDRN 2687
 
› Unix
Unix Commands ┆ YouListen
 
ASCII, American Standard Code for Information Interchange
• ASCII, American Standard Code for Information Interchange
1626#67 SBLNGS CHLDRN 67
 
• CSS
1626#4 SBLNGS CHLDRN 4
 
• HTML form
<form method='post' enctype='multipart/form-data' action='<?php echo $_SERVER['PHP_SELF']; ?>'>
    <input type='text' name='ix' value=''>
    <input type='radio' name='do' value='delete'>
    <input type='radio' name='do' value='private'>
    <input type ...
1626#20380 SBLNGS CHLDRN 20380
 
• HTML meta http-equiv
<meta http-equiv='refresh'
      content='5; url=http://qindex.info'>
1626#2622 SBLNGS CHLDRN 2622
 
Pillow English Listening
 
› HTML/CSS
articles ┆ Character Entities ┆ CSS Properties (Brian Wilson) ┆ CSS Properties (W3C) ┆ DOCTYPE ┆ Dummy Greek Text ┆ HTML 4.01 Attributes (W3C) ┆ HTML 4.01 Elements (W3C) ┆ HTML5 canvas tutorial ┆ P3P ┆ Quick Canvas ┆ Quick Meta Tags ┆ RSS ┆ standards/documents ┆ statistics ┆ validation ┆ xhtml1-frameset.dtd ┆ xhtml1-strict.dtd ┆ xhtml1-transitional.dtd ┆ XML
 
• HTML5
<!DOCTYPE html><html><head>
<title></title>
<meta name='description' content=''>
<meta name='viewport'
  content='width=device-width,initial-scale=1.0'>
<link rel='stylesheet' href=''>
<style></style>
<script src=''></script>
<script></script>
</head><bod ...
1626#1635 SBLNGS CHLDRN 1635
 
› JavaScript
charAt, charCodeAt, fromCharCode ┆ charCodeAt, fromCharCode ┆ exec ┆ RegExp, match, replace ┆ setTimeout
 
› JavaScript
addEventListener 1 ┆ addEventListener 2 ┆ addEventListener 3 ┆ keycodes ┆ setTimeout() 1 ┆ setTimeout() 2
 
• JavaScript functions & objects
1626#4880 SBLNGS CHLDRN 4880
 
• JavaScript JSON
var j = {
   v: 0
  ,c: function() {
    g = this;
    this.v = 0;
    this.f = function() {
      window.alert(g.v);
    };
    this.e = function() {
      attach(window,'load',this.f);
    };
  }
}
o = new j.c();
o.v = 1;
o.e();
//1
1626#2441 SBLNGS CHLDRN 2441
 
• jif
1626#6 SBLNGS CHLDRN 6
 
• linux
chmod 777 s
rm -rf Q_thmb
1626#8926 SBLNGS CHLDRN 8926
 
› MySQL
MySQL manual ┆ REGEXP
 
• MySQL CREATE TABLE
CREATE TABLE t (
  i int(10) auto_increment,
  s varchar(32) default 'no data',
  c text,
  p varchar(32),
  t int(10),
  PRIMARY KEY (i)
);
1626#766 SBLNGS CHLDRN 766
 
› PHP
copy ┆ file ┆ filesize ┆ file_exists ┆ header ┆ mysql_fetch_array ┆ mysql_num_rows ┆ mysql_real_escape_string ┆ ob_start(), ob_get_contents() ┆ ob_start,ob_clean ┆ preg_match ┆ preg_match_all ┆ preg_replace ┆ rawurlencode
 
• PHP class
class c {
    var $v;
    function c($i) {
        $this->v = $i;
    }
    function f() {
        echo $this->v;
    }
}
$o = new c('o');
$o->f();
//o
1626#2618 SBLNGS CHLDRN 2618
 
• phpinfo
1626#16144 SBLNGS CHLDRN 16144
 
• regular expression
1626#16688 SBLNGS CHLDRN 16688
 
• string conversion
1626#54 SBLNGS CHLDRN 54
 
› study
htmlspecialchars() ┆ JavaScript RegExp Reference ┆ qesc() ┆ qesc() ┆ regular expression ┆ regular expression 1 character escapes ┆ regular expression 2 character classes ┆ regular expression 3 quantifiers ┆ regular expression 4 assertions ┆ regular expression 5 usage ┆ string conversion ┆ Unicode

-