Site Tools


onny:notizen:programmierung

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
onny:notizen:programmierung [2023/03/24 14:48] – [javascript] 10.100.0.1onny:notizen:programmierung [2026/06/30 13:24] (current) – [php] 10.250.0.1
Line 205: Line 205:
 </code> </code>
 ===== javascript ===== ===== javascript =====
 +
 +conditional properties in object
 +<code javascript>
 +cont my_object = {
 +  ...(version >= 33 ? { iconSvgInline: MindMapSvg } : { iconClass: 'icon-mindmap' }),
 +}
 +</code>
  
 split up javascript files split up javascript files
Line 514: Line 521:
       }       }
 </code> </code>
-===== css ===== + 
-sweet font styling +===== php ===== 
-<code css+ 
-font-familyconsolas,Menlo-Regular,Menlo,Monaco,monospace; +printf string 
-    font-size: 125%; +<code php
-    line-height: 135%;+printf("cleaning criteria%s\n"$config['filterCriteria']);
 </code> </code>
-media queries, page greater than 600px + 
-<code css+print array 
-      @media (min-width: 600px+<code php
-        article { +$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z')); 
-          min-width: 600px+print_r($a);
-        } +
-      }+
 </code> </code>
-popover menu 
-<code css> 
-.main-navigation ul li ul.sub-menu { 
- opacity: 0; 
- position: absolute; 
-  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); 
- transition:opacity 250ms ease-out; 
- padding: 20px; 
- z-index: 2; 
- left: 17px; 
- background: white; 
-} 
  
-.main-navigation ul li:hover ul.sub-menu { +assosiative array / dictionary 
- opacity: 1; +<code php> 
- transition:opacity 250ms ease-out; +$myResult["ids"] = [123, 125, 127];
-}+
 </code> </code>
  
-responsive grid layout +datetime object, convert to string 
-<code> +<code php
-ul { +$date = new \DateTime('1990-01-01')
- display: grid; +$dateString = $date->format('d.m.Y');
- grid-gap: 50px 40px+
- grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); +
-}+
 </code> </code>
-===== php =====+
 enable debugging / error log enable debugging / error log
 <file - /etc/php/conf.d/debug.ini> <file - /etc/php/conf.d/debug.ini>
Line 787: Line 776:
 </code> </code>
 ===== sql ===== ===== sql =====
-Update field: 
-<code sql> 
-update forwardings set destination='alex.bloss@online.de' where 'destination=bloss@bigwood.de'; 
-</code> 
-Insert field: 
-<code sql> 
-insert into forwardings (source, destination) VALUES ('markus.heim@wew-heim.de', 'heimmarkus@yahoo.de'); 
-insert into forwardings VALUES ('markus.heim@wew-heim.de', 'heimmarkus@yahoo.de'); 
-</code> 
-Delete row: 
-<code sql> 
-delete from domains where domain='alex-vt.de'; 
-</code> 
 <code sql> <code sql>
 mysql> \P /usr/bin/less mysql> \P /usr/bin/less
onny/notizen/programmierung.1679669336.txt.gz · Last modified: by 10.100.0.1