Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

test

seems like your internet connection works...
Comment

test

noelgay
Comment

test

let arry = [2, 4, 6, 8, 10, 12, 14, 16];
let lastElement = arry[arry.length - 1];

console.log(lastElement);

//Output: 16
Comment

test

connection.connect(function(err) {
  if (err) {
    return console.error('error: ' + err.message);
  }

  console.log('Connected to the MySQL server.');
});
Code language: JavaScript (javascript)
Comment

Test....

This is your very first Roblox creation. Check it out, then make it your own with Roblox Studio! yes.... DO IT!
Comment

test

string strgroupids = "6";
Comment

test

string strgroupids = "6";
Comment

test

string strgroupids = "6";
Comment

test

string strgroupids = "6";
Comment

test

string strgroupids = "6";
Comment

test

string strgroupids = "6";
Comment

test

string strgroupids = "6";
Comment

test

string strgroupids = "6";
Comment

test

string strgroupids = "6";
Comment

test

Participant::where('IDUser', 1)->event()->get();
Comment

test

class Event extends Model {

    protected $table = 'events';
    public $timestamps = false;

    public function participants()
    {
        return $this->hasMany('AppParticipant', 'IDEvent', 'ID');
    }

    public function owner()
    {
        return $this->hasOne('AppUser', 'ID', 'IDOwner');
    }
}
Comment

test

$list = Participant::where('IDUser', 1)->get();
for($item in $list) {
   $event = $item->event;
   // ... other code ...
}
Comment

test

Can confirm internet is working :)
Comment

test

import { fetch } from "fetch-h2";
Comment

TEST

export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install samba winbind libnss-winbind krb5-user smbclient ldb-tools python3-crypto
unset DEBIAN_FRONTEND
Comment

test

console.log("sik kafası");
Comment

test

your wifi works yay
Comment

test

TypeError Object
(
    [message:protected] => Peer_Content::getByModule(): Argument #1 ($module) must be of type Model_Module, Model_Site given, called in /shared/httpd/horizoncms/modules/news/controllers/backend.php on line 17
    [string:Error:private] => 
    [code:protected] => 0
    [file:protected] => /shared/httpd/horizoncms/modules/content/models/peer/content.php
    [line:protected] => 14
    [trace:Error:private] => Array
        (
            [0] => Array
                (
                    [file] => /shared/httpd/horizoncms/modules/news/controllers/backend.php
                    [line] => 17
                    [function] => getByModule
                    [class] => Peer_Content
                    [type] => ::
                    [args] => Array
                        (
                            [0] => Model_Site Object
                                (
                                    [id:protected] => 1
                                    [name:protected] => Default
                                    [alias:protected] => default
                                    [domain:protected] => horizoncms.loc
                                    [default:protected] => 1
                                    [use_sitemap:protected] => 1
                                )

                            [1] => Model_Language Object
                                (
                                    [id:protected] => 1
                                    [name:protected] => Nederlands
                                    [alias:protected] => dutch
                                    [code:protected] => nl
                                    [domain:protected] => 
                                    [active:protected] => 1
                                    [default:protected] => 1
                                    [use_sitemap:protected] => 1
                                )

                            [2] => 
                            [3] => added
                            [4] => DESC
                        )

                )

            [1] => Array
                (
                    [file] => /shared/httpd/horizoncms/app/router/admin.php
                    [line] => 39
                    [function] => actionDefault
                    [class] => Module_Backend_News
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [file] => /shared/httpd/horizoncms/public/index.php
                    [line] => 36
                    [function] => run
                    [class] => Router_Admin
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Error:private] => 
)
Comment

test

import random
import time
import sys
import os

if os.name == 'nt':
    from ctypes import windll
    k = windll.kernel32
    k.SetConsoleMode(k.GetStdHandle(-11), 7)

keys = {'a': 'NSr', 'b': 'rlK', 'c': 'yDD', 'd': 'YBr', 'e': 'XBB', 'f': 'LLo', 'g': 'gZn', 'h': 'LTd', 'i': 'hKn', 'j': 'fWj', 'k': 'dgu', 'l': 'nFN', 'm': 'nNy',
        'n': 'QKD', 'o': 'cJJ', 'p': 'MEA', 'q': 'WTJ', 'r': 'nnM', 's': 'Tru', 't': 'xcE', 'u': 'Msx', 'v': 'Cef', 'w': 'Hkf', 'x': 'obn', 'y': 'myp', 'z': 'PUE'}

keyr = {v: k for k, v in keys.items()}

def encrypt(text):
  if len(text) > 1:
    string = ""
    for char in text:
      if char in keys:
        string += keys[char] + ","
      else:
        return "Only letters are allowed"
        break
    return string
  else:
    return "Text must have something in it"

def decrypt(text):
  text = text[:-1].split(",")
  if len(text) > 1:
    string = ""
    for char in text:
      if char in keyr:
        string += keyr[char]
      else:
        return "Only letters are allowed"
        break
    return string
  else:
    return "Text must have something in it"

print("Welcome to Wordle!")
print("Random or Custom Word?")
ch = input("Type 'r' or 'c' ")

if ch not in ("r", "c"):
  while ch not in ("r", "c"):
    ch = input("Type 'r' or 'c' ")

green = "u001b[32m"
yellow = "u001b[33m"
reset = "u001b[0m"

if ch == "r":
  letters = "abcdefghijklmnopqrstuvwxyz"
  ln = {}
  for char in letters:
    ln[char] = 0
  words = open("words.txt", "r")
  wordl = []
  for item in words.readlines():
    wordl.append(item.strip())
  word = wordl[random.randint(0, 5756)]
  print(f'Your word is 5 letters. Start guessing!')
  num = 1
  correct = False
  while num < 6:
    guess = input(f'Guess {str(num)}: ').lower()
    sys.stdout.write("33[F")
    invalid = False
    for char in guess:
      if char not in keys:
        print(" " * 250)
        sys.stdout.write("33[F")
        print("Must be only letters!")
        invalid = True
    if len(guess) > 5:
      print(" " * 250)
      sys.stdout.write("33[F")
      print("Word is too long.")
    elif len(guess) < 5:
      print(" " * 250)
      sys.stdout.write("33[F")
      print("Word is too short.")
    elif guess not in wordl:
      print(" " * 250)
      sys.stdout.write("33[F")
      print("Invalid word.")
    elif invalid:
      pass
    else:
      if guess == word:
        print("Your word is correct!")
        correct = True
        break
      chn = 0
      colored = ""
      for char in guess:
        if char in word:
          if char == word[chn]:
            colored += f'{green}{char}{reset}'
          else:
            colored += f'{yellow}{char}{reset}'
        else:
          colored += char
        chn += 1
      print(f'Guess {str(num)}: ' + colored)
      num += 1
  if correct == False:
    print(f'You lose! The word was {word}. Better luck next time!')
  else:
    print("Congratulations! You win!")
  time.sleep(999)
  
  
Comment

Test

<?php
 
namespace AppModels;
 
use IlluminateDatabaseEloquentModel;
 
class User extends Model
{
    /**
     * Get the phone associated with the user.
     */
    public function phone()
    {
        return $this->hasOne(Phone::class);
    }
}
Comment

test

no Yahoo virus!
Comment

testing

public static List<String> splitEqually(String text, int size) {
    // Give the list the right capacity to start with. You could use an array
    // instead if you wanted.
    List<String> ret = new ArrayList<String>((text.length() + size - 1) / size);

    for (int start = 0; start < text.length(); start += size) {
        ret.add(text.substring(start, Math.min(text.length(), start + size)));
    }
    return ret;
}
Comment

test

const regexHTML = /((https?://|www.)[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-z]{2,6}([-a-zA-Z0-9@:%_+.~#?&/=/;])*)/gi;
Comment

test

Testing grepper module, npmjs.com/package/grepper
Comment

test

GET https://rtddev.service-now.com/api/now/import/{stagingTableName}/{sys_id}
Comment

test

200 OK
Comment

test

console.log('test')
Comment

test

curl "https://api.logdna.com/v1/export?from=$(($(date +%s)-86400))000&to=$(date +%s)000&levels=warn" 
-u 01febba9823c455f8a4361b92ea0f91d:
Comment

test

GET /identity_v1.0/checks/:id/result/documents
test
Comment

test

print("1234565")
Comment

test

$sum = 0;
for($i = 1; $i <= 10; $i++){
    if($i == 10){
        echo $i;
    } else {
        echo $i." + ";
    }
    $sum = $sum + $i;
}
echo " = ".$sum;
Comment

test

/srv/users/SYSUSER/log/APPNAME/APPNAME_apache.error.log
Comment

test

"sfs"
dsffsf
Comment

test

"sfs"
Comment

test

router.post("/register", (req, res) => {
    console.log(req.body)
    console.log('Hit')

      knex.select('*')
      .from('users')
      .where('email', req.body.email)
      .then(function(results) {          
            knex('users')
            .insert([{
              first_name: req.body.first_name,
              last_name: req.body.last_name,
              phone: req.body.phone,
              email: req.body.email,
              password: bcrypt.hashSync(req.body.password, 15)
            }])
            .returning('id')
            .then(function(id) {
              req.session.user_id = id;
            })
            .catch(function(error) {
              console.error(error)
            });
          }
      })
      .catch(function(error) {
        console.error(error)
      });
    // }
  });
Comment

test

apiVersion: v1
kind: Config
preferences: {}

clusters:
- cluster:
  name: development
- cluster:
  name: scratch

users:
- name: developer
- name: experimenter

contexts:
- context:
  name: dev-frontend
- context:
  name: dev-storage
- context:
  name: exp-scratch
Comment

test

GetCaptchaCommand
Comment

test

<?php 
	echo 'test';
?>	
  
  
Comment

test

println("test")
println("hello world")
Comment

test

value = 'asdasADB12210asd'
const regExp = new RegExp('/[a-zA-Z0-9]+/')
console.log(value.match(regExp))
 Run code snippetHide results
Comment

test

value = 'asdasADB12210asd'
const regExp = new RegExp('/[a-zA-Z0-9]+/', 'g')
console.log(value.match(regExp))
 Run code snippetHide results
Comment

test

for (var i = 0; i < 11; i++) {
   console.log(i);
}
Comment

test

select column1 from some_table where column1 ~ '[^a-zA-Z0-9]'
Comment

test

<!DOCTYPE html>
<!-- Add a title -->
<h1>First html document</h1>

<!-- Add a bit of text -->
<p>This is my first sentence</p>

<!-- Add a svg shape -->
<svg>
  <circle style="fill: blue" stroke="black" cx=50 cy=50 r=40></circle>
</svg>
Comment

test

HTMLCollection []
0: span._6EkCIBulssv0eDQ55G3yH
__reactEventHandlers$7z5zjnlu03u: {className: '_6EkCIBulssv0eDQ55G3yH', children: 'SharePoint'}
__reactInternalInstance$7z5zjnlu03u: wc {tag: 5, key: null, elementType: 'span', type: 'span', stateNode: span._6EkCIBulssv0eDQ55G3yH, …}
accessKey: ""
Comment

test

hey john
Comment

PREVIOUS NEXT
Code Example
Javascript :: what to do when node was already in close in A* algorithm 
Javascript :: find first and last occurence in knockout js template 
Javascript :: dynamic select paragraph id using javascript 
Javascript :: curly j 
Javascript :: html working with JSON data 
Javascript :: parallel testing vs cross browser testing 
Javascript :: xrm javascript get value from form 
Javascript :: how to add class to element on mouseclick with js 
Javascript :: elasticsearch reindex and rename field 
Javascript :: adding dynamically add foreach elements as an array 
Javascript :: how to calculate each row with on change table <td<input jquery 
Javascript :: how to pass a variable to jspf 
Javascript :: cypress graphql request example 
Javascript :: AWS SDK for javascript assumerole with proxy 
Javascript :: smaler div on devices 
Javascript :: puppeteer sign in to popup facebook 
Javascript :: https://www.npmjs.com/package/inquirer/v/0.2.3) 
Javascript :: jquery check if element still exists 
Javascript :: angular attach component to body 
Javascript :: refresh javascript using require 
Javascript :: react redux cheat sheet 
Javascript :: minimize and maximize div in html 
Javascript :: install phantomjs Alpine Linux 
Javascript :: jquery not calling id from div called in ajax 
Javascript :: npm start error eslint 
Javascript :: how to generate random numbers in javascript when conditions are fulfiiled 
Javascript :: Uncaught ReferenceError: jQuery is not defined at (index): "405" 
Javascript :: onclick show 10 elements 
Javascript :: create a vue project from scratch with 2.9.6 
Javascript :: manipulação de array javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =