Snippets Collections
  function print24(str)
{
    // Get hours
    var h1 = Number(str[1] - '0');
    var h2 = Number(str[0] - '0');
    var hh = (h2 * 10 + h1 % 10);
  
    // If time is in "AM"
    if (str[8] == 'A')
    {
        if (hh == 12)
        {
            document.write("00");
            for (var i = 2; i <= 7; i++)
                document.write(str[i]);
        }
        else
        {
            for (var i = 0; i <= 7; i++)
                document.write(str[i]);
        }
    }
  
    // If time is in "PM"
    else
    {
        if (hh == 12)
        {
            document.write("12");
            for (var i = 2; i <= 7; i++)
                document.write(str[i]);
        }
        else
        {
            hh = hh + 12;
            document.write(hh);
            for (var i = 2; i <= 7; i++)
                document.write(str[i]);
        }
    }
}
  
// Driver code
 
    var str = "07:05:45PM";
    print24(str);
 
function timeConversion(s) {
    // 07:05:45PM
    const timeInAmPmArray = s.split(/(AM|PM)/) // ['07:05:45', 'PM', '']
    const hour = Number(timeInAmPmArray[0].split(':')[0]) // 7
    const amOrPm = timeInAmPmArray[1] // PM
    let timeIn24Hour = ''
    if(amOrPm === 'AM') {
      timeIn24Hour = hour === 12 ? `00:${timeInAmPmArray[0].split(':').slice(1).join(':')}` : timeInAmPmArray[0]
    } else {
      timeIn24Hour = hour === 12 ? timeInAmPmArray[0] : `${hour + 12}:${timeInAmPmArray[0].split(':').slice(1).join(':')}`
      // timeIn24Hour = 19:05:45
    }
    return timeIn24Hour
}
    
timeConversion('07:05:45PM')
Always (always, always, I'm not kidding) use htmlspecialchars():

echo htmlspecialchars($_POST['contact_list']);
var host= '10.1.1.5';
    var login= 'myLogin'; //loginController.text;
    var password= 'myPassword'; //passController.text;
    var port= 389;
    var connection= new LdapConnection(host: host, ssl: false, port: port, bindDN: login, password: password);
    try {
      await connection.open();
      await connection.bind();
      print('Bind OK');
    } catch (e, stacktrace) {
      print('********* Exception: $e, Stacktrace: $stacktrace');
    } finally {
      print('Closing');
      await connection.close();
    }
  }
    var host= '10.1.1.5';
    var login= 'mylogin'; //
    var base= 'DC=I,DC=domain,DC=com';
    var bindDN= "cn=" + login + ","  + base;
    var password= 'mypassword'; //passController.text;
    var port= 389;
#include<bits/stdc++.h>
using namespace std;
int first(int arr[], int low, int high, int x, int n);
int last(int arr[], int low, int high, int x, int n);
int count(int arr[], int x, int n)
{
    int i; 
    int j; 
    i = first(arr, 0, n - 1, x, n);
    if (i == -1)
        return i;
    j = last(arr, i, n - 1, x, n);
    return j - i + 1;
}
int first(int arr[], int low, int high, int x, int n)
{
    if (high >= low)
    {
        int mid = (low + high) / 2; 
        if ((mid == 0 || x > arr[mid - 1]) && arr[mid] == x)
            return mid;
        else if (x > arr[mid])
            return first(arr, (mid + 1), high, x, n);
        else
            return first(arr, low, (mid - 1), x, n);
    }
    return -1;
}

int last(int arr[], int low, int high, int x, int n)

{
    if (high >= low)
    {
        int mid = (low + high) / 2; 
        if ((mid == n - 1 || x < arr[mid + 1]) && arr[mid] == x)
            return mid;
        else if (x < arr[mid])
            return last(arr, low, (mid - 1), x, n);
        else
            return last(arr, (mid + 1), high, x, n);
    }
    return -1;
}
int main()
{
    
    // int n, x;
    // cin >> n >> x;
    // int arr[n];
    // for (int i = 0; i < n; i++)
    // {
    //     cin >> arr[i];
    // }
    int arr[] = {1, 2, 2, 2, 2, 3, 4, 7, 8, 8};
    int n = 10;
    int x = 2;
    int ans = count(arr, x, n);
    cout << ans << "\n";
    
    return 0;
}
function mergeArrays(arr1, arr2) {
	let commonArray = arr1.concat(arr2);
	let sortComArr = commonArray.sort((a, b) => a - b);
	let result = sortComArr.filter((current, i) => {
		return sortComArr.indexOf(current) === i;
	})
	return result
}

console.log(mergeArrays([1, 1, 3, 5, 7, 9], [10, 8, 6, 4, 2]))
<!DOCTYPE html>
<html lang="en">
    <head>
       
        <title>Table Creation</title>
		
   </head>
 <body>
 
<b>First Name</b> <br/>
<input placeholder="write your First Name" type="text"/> <br/><br/>

<b>Last Name</b><br/>
<input placeholder="write your Last Name" type="text"/> <br/><br/>

<b>Country</b><br/>

     <select>
	 
	         <option>Select your contry</option>
			 <option>India</option>
			 <option>Pakistan</option>
			 <option>NYK</option>
	 
	 </select> <br/><br/>

<b>Phone Number</b><br/>

<input placeholder="write your phone Number" type="text"/> <br/><br/>

<b>Email</br><br/>

<input placeholder="write your Email Number" type="text"/> <br/><br/>

<b>Password</b><br/>

<input placeholder="write your password" type="password"/> <br/><br/>

<b>Gender</br><br/>
<input type="radio" name="gender"/> Male <input name="gender" type="radio"/> Female </br></br>

<b>Data of Birth</b><br/>

<select>
<option>Date</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
</select>
 
<select>
<option>Months</option>
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
</select>
 
<select>
<option>Year</option>
<option>1900</option>
<option>2000</option>
<option>3000</option>
<option>3000</option>
<option>4000</option>
<option>5000</option>
<option>6000</option>
<option>7000</option>
<option>8000</option>
<option>9000</option>
</select>

<br/><br/><b>Choose your favorite color</b><br/>
<input type="checkbox"/> Black
<input type="checkbox"/> Whte
<input type="checkbox"/> Red
<input type="checkbox"/> Green
<input type="checkbox"/> Blue
<input type="checkbox"/> Orange

<br/><br/><b>About Yourself</b> <br/>
<br/><b>upload your profile picture</b><br/>
<input type="file"/><br><br/>

<textarea placeholder="write about yourself" cols="40" rows="7"> </textarea>

</b> <br/><button>Sign Up</button>


</body>
</html>
=@Connector("GoogleIndexing.GoogleIndexing",Index!A1,"URL_UPDATED")

=@Connector("GoogleIndexing.GoogleIndexing",CELL,"URL_UPDATED")
function queryHawke(){
  $w('#repeaterHawke').data=[]
  
  console.log('about to query Hawke wheels')
$w.onReady(function () {
  $w("#repeaterHawke").onItemReady(($item, itemData, index) => {
// const clickedImage = $item("#imageHinge")
$item("#imageHawke").src = itemData.imageLink;
$item("#nameHawke").text = itemData.name;
  // $item("#imageHinge").onClick( (event) => {wixLocation.to(itemData.productUrl)} );
  //$item('#viewHinge').onClick(() => {wixWindow.openLightbox('image', itemData)});
});

wixData.query("wheelSpec")
.eq("brand", "Hawke wheels")
.eq("nameFeat", true)
.ascending("name")
    .find()
    .then((results) => {
      console.log('query result done with hawke')
        if (results.totalCount > 0) {
        $w("#repeaterHawke").data = results.items;
      } 
     })
    .catch((error) => {
        
      console.log("Error:", error.message);
    }); 
   });
 }
<!DOCTYPE html>
<html>
<head>
    <title>My Blog</title>
	<meta name="description" content"Awesome blog by Traversy Mesia>
	<meta name="keywords" content"web design blog,web dev blog, traversy media">
	  <style type="text/css">
	         #main-header{
			      text-align:center;
				  background-color:black;
				  color:white;
				  padding:10px;
				  
		   }
       #main-footer{
         text-align: center;
         font-size: 18px;
       }
	  </style>
</head>
<body>
      <header id="main-header">
             <h1>My Website</h1>
      </header>
    
	<a href="index.html">Go to index</a>

      <section>
              <article class="post">
                <h3>Blog post one</h3>
                <small>posted by Brad on july 17</small>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
                  Quasi laborum asperiores maxime cupiditate, quo recusandae,
                  temporibus repellendus modi adipisci numquam minus accusantium 
                 dolorum deleniti nobis vero perspiciatis voluptate. Rem, temporibus.</p>
                 <a href="post.html">Read More</a>
              </article>

              <article class="post">
                <h3>Blog post Two</h3>
                <small>posted by Brad on july 17</small>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
                  Quasi laborum asperiores maxime cupiditate, quo recusandae,
                  temporibus repellendus modi adipisci numquam minus accusantium 
                  dolorum deleniti nobis vero perspiciatis voluptate. Rem, temporibus.</p>
                  <a href="post.html">Read More</a>
              </article>

              <article class="post">
                <h3>Blog post Three</h3>
                <small>posted by Brad on july 17</small>
                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
                  Quasi laborum asperiores maxime cupiditate, quo recusandae,
                  temporibus repellendus modi adipisci numquam minus accusantium 
                  dolorum deleniti nobis vero perspiciatis voluptate. Rem, temporibus.</p>
                  <a href="post.html">Read More</a>
              </article>
      </section>

      <>
        <h3>Categories</h3>
        <ul>
             <li><a href="#">Category 1</a></li>
             <li><a href="#">Category 1</a></li>
             <li><a href="#">Category 1</a></li>
        </ul>
       </nav>
      </aside>

      <footer id="main-footer">
          <p>Copyright &copy; 2017, My Website</p>
      </footer>
</body>  
</html>
<!DOCTYPE html>
<html>
<table>
	   <head>
			 <title>Html Cheat Sheet</title>
			</head>
			<body>
			     <a href="hello.html">Go to blog</a>
				 <hr>
           <!-- Heading -->
					 <h1>Heading One</h1>
					 <h2>Heading One</h2>
					 <h3>Heading One</h3>
					 <h4>Heading One</h4>
					 <h5>Heading One</h5>
					 <h6>Heading One</h6>
           <!-- paragraph -->
          <p>
             Lorem ipsum <a href="http://google.com" target="_blank">dolor</a> sit amet consectetur adipisicing elit.
						 Aspernatur error <strong>repellendus cumque delectus rerum natus
						 asperiores totam perferendis culpa</strong> iusto eaque adipisci
					   debitis aut <em>distindistinctio cupiditate </em>iste reprehenderit 
						exercitationem. Magni?
					</p>
					<p>
						Lorem, ipsum dolor sit amet consectetur adipisicing elit. 
						Consectetur at ipsum sed ab, sint deleniti non deserunt explicabo
						 recusandae saepe ex accusantium odio sapiente inventore illum illo, doloremque, eligendi provident.
					</p>
         <!-- Lists -->
				 <ul>
            <li>List Item 1</li>
						<li>List Item 2</li>
						<li>List Item 3</li>
						<li>List Item 4</li>

				 </ul>
         
				 <ol>
					<li>List Item 1</li>
					<li>List Item 2</li>
					<li>List Item 3</li>
					<li>List Item 4</li>
				 </ol>
            <!-- Table -->
            <table>
							   <thead>
									     <tr>
												  <th>Name</th>
													<th>Email</th>
													<th>Age</th>
											 </tr>
								 </thead>
						<table>
						       <tr>
                        <td>Brad Traversy</td>
												<td>freelancingrashed@gmail.com</td>
												<td>45</td>
									 </tr>
									 <tr>
									 <td>rashed</td>
									 <td>freelancingrashed@gmail.com</td>
									 <td>45</td>
									 </tr>

                  <tr>
										<td>Sara Williams</td>
									 <td>freelancingrashed@gmail.com</td>
									 <td>45</td>
									 </tr>
									</tbody>
		</table>

		<br>
		<hr>
		<br>
     <!-- Forms -->
     <form action="process.php" method="Post">
			    <div>
			      <lable>First Name</lable>
			      <input type="text" name="firstName"
						placeholder="Enter first name">
	        </div>
					<br>
					<div>
			        <lable>Last Name</lable>
			        <input type="text" name="lastName">
		   	 </div>
					<br>
					<div>
						   <label>Email</label>
							 <input type="email" name="email">
					</div>
					<br>
					<div>
						<label>Massage</label>
						<textarea name="message"></textarea>
						</div>
					<br>
					<div>
						<label>Gender</label>
						<select name="gender">
							<option value="male">Male</option>
							<option value="female">Female</
								option>
							<option value="other">other</
								option>	
						</select>
					</div>
					<br>
					<div>
						   <label>Age</label>
							 <input type="number" name="age"
							 value="30">
					</div>
					<br>
					<div>
						<label>Birthday:</label>
						<input type="data" name="Birthday"
						>
						</div>
						<br>
						<input type="submit" name="submit"
						value="submit">
		 </form>
    
		 <!-- Button -->
		 <button>Click Me</button>

     <br>


		 <!-- Image -->
		<a href="img/background.jpg">
		 <img src="img/london.png" alt="My Sample Image"
		 width="200">
    </a>

		<!-- quotations -->
		<blockquote city="http://traversymedia.com">
		 Lorem ipsum dolor sit amet consectetur adipisicing elit.
		 Earum optio minus ullam est, quis libero provident 
		 reprehenderit neque dolorum accusantium quam, possimus,
		 et eos exercitationem rem sed totam numquam consequuntur.
		</blockquote>
		
		<p>The <abbr title="world Wide web">www</abbr>
			is awesome</p> 

			<p><cite>HTML crash course</cite> by brad 
			Traversy</p>
			
			<div style="margin-top: 500px;"></div>

	</body>
</html>			
from openpyxl import load_workbook

wb = load_workbook(excel_path, read_only=True)
sheet = wb[sheet_name]

row_count = sheet.max_row
def CrossEntropy(yHat, y):
    if y == 1:
      return -log(yHat)
    else:
      return -log(1 - yHat)
def timeit(method):
    def timed(*args, **kw):
        ts = time.time()
        result = method(*args, **kw)
        te = time.time()

        print(f'{method.__name__}  {(te - ts):.2f} s')

        return result
    return timed
list_to_write = ["Write", "these", "in", "file", "number", 4]
file = open("file4.txt", "w")
file.write(" ".join([str(item) for item in list_to_write]))
file.close()
from pathlib import Path

my_file = Path("/path/to/file")
if my_file.is_file():
    # file exists
 Sub Main()
1 ZAD!
        Dim tekst As String
        Dim slovo As Char

        Console.WriteLine("Unesite tekst")
        tekst = Console.ReadLine()
        Console.WriteLine("Unesit slovo koje zelite izbaciti")
        slovo = Console.ReadLine()

        trim(tekst, slovo)

        Console.ReadKey()

    End Sub


    Sub trim(tekst As String, slovo As Char)

        Dim v = Char.ToUpper(slovo)
        Dim m = Char.ToLower(slovo)



        For i As Integer = 0 To tekst.Length - 1
            If tekst(i) = v Or tekst(i) = m Then
                tekst = tekst.Trim(tekst(i))
            End If
        Next

        Console.WriteLine("Promjenjeni tekst je {0}", tekst)

    End Sub
    
    
    
    Sub Main()
3 ZAD !
        Dim tekst As String
        Dim rijec As String

        Console.WriteLine("Unesite tekst")
        tekst = Console.ReadLine()
        Console.WriteLine("Unesit rijec koju zelite izbaciti")
        rijec = Console.ReadLine()

        trim(tekst, rijec)



        Console.ReadKey()

    End Sub


    Sub trim(tekst As String, rijec As String)

        tekst = tekst.Replace(rijec, "")



        Console.WriteLine("Promjenjeni tekst je {0}", tekst)

    End Sub
    
    
    
    
    
    
    
    
    
    
base = datetime.datetime.today()
date_list = [base - datetime.timedelta(days=x) for x in range(numdays)]
OneToMany tarafına cascade eklenip,
ManyToOne tarafına:      * @Evence\onSoftDelete(type="CASCADE")
eklenecek
Random random = new Random();
            int num = random.Next(10000000);
            string numy = num.ToString();

            string connectionString = @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=cms;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False";
            SqlConnection connection = new SqlConnection(@connectionString);
            string query = "INSERT INTO users (ID,Password) VALUES('"+numy+"','01')";
            SqlCommand command = new SqlCommand(query, connection);
            try
            {
                connection.Open();
                command.ExecuteNonQuery();
                MessageBox.Show("Records Inserted Successfully");
            }
            catch (SqlException x)
            {
                MessageBox.Show("Error Generated. Details: " + x.ToString());
            }
            finally
            {
                connection.Close();
            }
#include <stdio.h>
#include <stdlib.h>
#include "readtext.c"

int main (){
    int zeichenKetteSize = 0;
    char* zeichenKette = readtext();
    int i;
    while (zeichenKette[zeichenKetteSize] != '\0') zeichenKetteSize++;


    for (i = 0; i < zeichenKetteSize; i++){
        if (zeichenKette[i] >= 'A' && zeichenKette[i] <= 'Z') zeichenKette[i]= zeichenKette[i] + 32;
        if (zeichenKette[i] == '.' || zeichenKette[i] == ',' || zeichenKette[i] == '?' || zeichenKette[i] == ':' || zeichenKette[i] == ';' || zeichenKette[i] == '"') 
    }
    printf("zeichenKette: %s\n", zeichenKette);
    return 0;
}

  
  
  
  /*
  
  #include <stdio.h>
#include <stdlib.h>


char* readtext() {
    int puffergroesse = 10;
    char* puffer = malloc(puffergroesse);
    int eingabepos = 0;
    char eingegebenes_zeichen;
    do {
        eingegebenes_zeichen = getchar();
        if (eingegebenes_zeichen != '\n') {
            puffer[eingabepos] = eingegebenes_zeichen;
            eingabepos++;
            if (eingabepos == puffergroesse) {
            puffergroesse = puffergroesse + 10;
            puffer = realloc(puffer, puffergroesse);
            }

        }
        } while (eingegebenes_zeichen != '\n');
            puffer[eingabepos] = '\0';
            puffer = realloc(puffer,eingabepos+1);

    return puffer;
 }
  */
gs.info(getDuplicates('cmdb_ci_service','u_service_id'));

function getDuplicates(tablename,val) {
  var dupRecords = [];
  var gaDupCheck = new GlideAggregate(tablename);
  gaDupCheck.addQuery('active','true');
  gaDupCheck.addAggregate('COUNT',val);
  gaDupCheck.addNotNullQuery(val);
  gaDupCheck.groupBy(val);
  gaDupCheck.addHaving('COUNT', '>', 1);
  gaDupCheck.query();
  while (gaDupCheck.next()) {
      dupRecords.push(gaDupCheck[val].toString());  
  }
  return dupRecords;
}
password password = new password();
            password.ShowDialog();
//METHOD 1

const data = 'CodezUp';
console.log('---ORIGINAL-----', data)

// Encode String

const encode = Buffer.from(data).toString('base64')
console.log('\n---ENCODED-----', encode)

// Decode String

const decode = Buffer.from(encode, 'base64').toString('utf-8')
console.log('\n---DECODED-----', decode)

// METHOD 2

// Define the string - btoa will encode
var encodedStringAtoB = "SGVsbG8gV29ybGQh";

// Decode the String
var decodedStringAtoB = atob(encodedStringAtoB);

console.log("final result: ", decodedStringAtoB);


///////////////////////////////

crypto.randomBytes(16, (err, buf) => {
	if (err) {
		console.log("err from random bytes", err);
		return;
	}
	console.log("the random bytes are:", buf.toString("base64"));
	return buf;
});
array = [["white", "goodness"], ['green', 'mood']];

function colourAssociation(array) {
	let result = [];
	array.reduce((obj, elem) => {
		obj = {};
		obj[elem[0]] = elem[1];
		return result.push(obj);
	}, {})
	
	return result
}

console.log(colourAssociation(array))
MappingConfigurationService mappingConfigurationService = new MappingConfigurationService();

Schema.SObjectType objectType = Product2.getSObjectType();
System.debug(objectType);

ObjectMappingConfiguration config = mappingConfigurationService.getMappingConfigurationForType(objectType);
 
        System.debug('Field name is:' + config);

Map<Schema.SObjectField, MappedField> mappedFields = config.mappedFields;

     System.debug(mappedFields);
    System.debug(mappedFields.values());
  
String fields = String.valueOf(mappedFields);
    
 Set<String> fieldNames = new Set<String>();
        fieldNames.add('Description');

    for(Schema.SObjectField key : mappedFields.keySet()){
        System.debug('### lines.get(key) : ' + key);
        System.debug('### >>> ' + mappedFields.get(key));
        fieldNames.add(key.getDescribe().getName());
    }
  
        
        // mappedFields.get('exactOnlineField');

        System.debug('Dit zijn de velden asdfsadfsdfssdaf' + fields);

SObject recordWithHighestTimestamp = Application.getSelectorFactory().newInstanceFor(config.salesforceObjectType).selectFirstRecordByMaxTimeStamp(config.timestampField);

ExactOnlineSyncApi exactOnlineSyncApi = new ExactOnlineSyncApi(); 

System.debug(recordWithHighestTimestamp);

List<Map<String, object>> untypedEOLObjects = exactOnlineSyncApi.listExactOnlineItemsHelperJSON((String) recordWithHighestTimestamp.get(config.timestampField), fieldNames);

System.debug('Dit zijn de untypedEOLObjects = ' + untypedEOLObjects);
        Array.from(this.elementRef.nativeElement.children).forEach(child => {
            console.log('children.length=' + this.elementRef.nativeElement.children.length);
            this.renderer.removeChild(this.elementRef.nativeElement, child);
       }); 
1 {
    color: #ffffff;
    font-variant: small-caps;
    padding: 2%;
}

body {
	padding: 2%;
	margin: 2%;
    font-size: 110%;
}

header {
	background: #FFFFFF;
	background: url('http://intro-webdesign.com/CSS/assignment-2/images/flywheel.jpg') no-repeat;
    background-size: 110%;
}

nav a {
	display: inline-block;
	margin: 20px;
	width: 15%;
	height: 30px;
	border-radius: 5px;
	background: #ffffff;
	opacity: 0.3;
	text-align: center;
	padding: 10px 5px;
	text-decoration: none;
	font-variant: small-caps; 
}

.active {
	opacity: 1;
}

img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	width: 150px;
	border: 2px solid black;
}

.left {
	background: #b3b3b3;
	display: inline-block;
    float: left;
	width: 20%;
}

.right {
	padding-left: 1%;
	display: inline-block;
    float: right;
	width: 77%;
	margin-top: 10px;
    padding-right: 2%
}

/* Table Styling */
table {
    padding: 2%;
    margin: 0 auto;
    line-height: 50px;
    width: 65%;
    padding-bottom: 5%;
}

/* Table Header Styling */
th {
    background-color: 	#9ACD32;
    padding: 2%;
    font-variant: small-caps;
    font-size: 100%;
    color: #ffffff;
    line-height: 40px;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #339933;
}

/*Make the table text in two columns to the right centered*/
th, tr td {
    text-align: center;
}

/*Make the table text in the column to the left left-aligned*/
th:first-child, tr td:first-child {
    text-align: left;
}

/* Set opacity of table rows*/
tr td {
    opacity: 0.6;
}


/*Change opacity of table rows when hovered over*/
tr:hover td {
    opacity: 1;
    color: #339933;
    font-weight: bold;
    font-size:100%;
    line-height: 60px;
}

/*Styling the table cells*/
td {
    background-color: #90EE90;
    padding-left: 2%;
    padding-right: 2%;
    font-size: 90%;
    border-bottom: 2px solid #ffffff;
}

In [273]: cols = df.columns.drop('id')

In [274]: df[cols] = df[cols].apply(pd.to_numeric, errors='coerce')

In [275]: df
Out[275]:
     id    a  b  c  d  e    f
0  id_3  NaN  6  3  5  8  1.0
1  id_9  3.0  7  5  7  3  NaN
2  id_7  4.0  2  3  5  4  2.0
3  id_0  7.0  3  5  7  9  4.0
4  id_0  2.0  4  6  4  0  2.0

In [276]: df.dtypes
Out[276]:
id     object
a     float64
b       int64
c       int64
d       int64
e       int64
f     float64
dtype: object
cd my-app
ng serve --open
function findMissing(arr1, arr2) {
	let str = arr1.filter(i => !arr2.includes(i)).join('');
	return Number(str);
}


 Test.assertEquals(findMissing([1, 2, 3], [1, 3]), 2);
  Test.assertEquals(findMissing([6, 1, 3, 6, 8, 2], [3, 6, 6, 1, 2]), 8);
  Test.assertEquals(findMissing([7], []), 7);
import pandas as pd
import numpy as np
from tqdm import tqdm
# from tqdm.auto import tqdm  # for notebooks

# Create new `pandas` methods which use `tqdm` progress
# (can use tqdm_gui, optional kwargs, etc.)
tqdm.pandas()

df = pd.DataFrame(np.random.randint(0, int(1e8), (10000, 1000)))
# Now you can use `progress_apply` instead of `apply`
df.groupby(0).progress_apply(lambda x: x**2)
star

Fri Dec 10 2021 01:23:15 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/nodejs/nodejs-tutorial

@jpalbright31

star

Fri Dec 10 2021 08:41:20 GMT+0000 (Coordinated Universal Time) https://www.datacamp.com/community/tutorials/for-loops-in-python

@Tushar_Singh

star

Fri Dec 10 2021 18:16:51 GMT+0000 (Coordinated Universal Time) https://docs.djangoproject.com/en/3.2/howto/windows/

@huskygeek

star

Fri Dec 10 2021 18:25:10 GMT+0000 (Coordinated Universal Time)

@Evgeniya

star

Sat Dec 11 2021 03:43:47 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/program-convert-time-12-hour-24-hour-format/

@tolanisirius

star

Sat Dec 11 2021 04:00:12 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/15083548/convert-12-hour-hhmm-am-pm-to-24-hour-hhmm

@tolanisirius

star

Sat Dec 11 2021 09:49:25 GMT+0000 (Coordinated Universal Time) https://inblog.in/Power-BI-Projects-Sales-Product-Spend-Hg6pggQkTi

@code00

star

Sun Dec 12 2021 09:49:06 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/7582577/php-post-method-to-get-textarea-value

@khalidlogi

star

Sun Dec 12 2021 12:09:20 GMT+0000 (Coordinated Universal Time) https://www.fixes.pub/program/554653.html

@Rafeie

star

Sun Dec 12 2021 12:09:21 GMT+0000 (Coordinated Universal Time) https://www.fixes.pub/program/554653.html

@Rafeie

star

Sun Dec 12 2021 12:15:32 GMT+0000 (Coordinated Universal Time)

@aloneKnight

star

Sun Dec 12 2021 12:21:53 GMT+0000 (Coordinated Universal Time) https://www.codewars.com/kata/5899642f6e1b25935d000161/solutions/javascript

@Evgeniya

star

Sun Dec 12 2021 19:29:06 GMT+0000 (Coordinated Universal Time) github.com/developerashed

@developerashed

star

Sun Dec 12 2021 21:54:27 GMT+0000 (Coordinated Universal Time) http://karimboudjema.com/en/drupal/20190315/saving-temporary-values-form-private-tempstore-drupal-8

@igor

star

Mon Dec 13 2021 00:48:55 GMT+0000 (Coordinated Universal Time) https://web.roblox.com/catalog/5858050283/Candy-Cane

@Sitickywill1122

star

Mon Dec 13 2021 10:00:04 GMT+0000 (Coordinated Universal Time)

@aguelmann

star

Mon Dec 13 2021 10:58:19 GMT+0000 (Coordinated Universal Time)

@rumpski

star

Mon Dec 13 2021 12:12:09 GMT+0000 (Coordinated Universal Time) https://pretagteam.com/question/showhide-dynamic-data-on-button-click-in-vuejs

@cecisalof

star

Mon Dec 13 2021 13:13:19 GMT+0000 (Coordinated Universal Time)

@developerashed

star

Mon Dec 13 2021 13:14:22 GMT+0000 (Coordinated Universal Time)

@developerashed

star

Mon Dec 13 2021 16:56:14 GMT+0000 (Coordinated Universal Time) https://kentcdodds.com/blog/application-state-management-with-react

@MattMoniz

star

Mon Dec 13 2021 17:17:00 GMT+0000 (Coordinated Universal Time) https://community.wix.com/partners/forum/partner-announcements/feature-opened-request-contributor-access-on-client-sites

@rumpski

star

Tue Dec 14 2021 01:57:16 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/13377793/is-it-possible-to-get-an-excel-documents-row-count-without-loading-the-entire-d

star

Tue Dec 14 2021 02:11:23 GMT+0000 (Coordinated Universal Time) https://ml-cheatsheet.readthedocs.io/en/latest/loss_functions.html

@zhangyu

star

Tue Dec 14 2021 08:31:00 GMT+0000 (Coordinated Universal Time) https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d

star

Tue Dec 14 2021 09:03:20 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/45310254/fixed-digits-after-decimal-with-f-strings

star

Tue Dec 14 2021 09:20:26 GMT+0000 (Coordinated Universal Time) https://www.scaler.com/topics/convert-list-to-string-python/

@Radhika00

star

Tue Dec 14 2021 10:07:07 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/82831/how-do-i-check-whether-a-file-exists-without-exceptions

star

Tue Dec 14 2021 13:08:32 GMT+0000 (Coordinated Universal Time)

@Guesswho1911

star

Tue Dec 14 2021 13:25:35 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/993358/creating-a-range-of-dates-in-python

star

Tue Dec 14 2021 14:03:54 GMT+0000 (Coordinated Universal Time)

@ozgunn

star

Tue Dec 14 2021 14:39:24 GMT+0000 (Coordinated Universal Time)

@jason017

star

Tue Dec 14 2021 14:43:40 GMT+0000 (Coordinated Universal Time)

@ahoeweler

star

Tue Dec 14 2021 15:52:21 GMT+0000 (Coordinated Universal Time)

@EagleEye

star

Tue Dec 14 2021 16:36:51 GMT+0000 (Coordinated Universal Time)

@vedo

star

Tue Dec 14 2021 17:15:26 GMT+0000 (Coordinated Universal Time)

@jason017

star

Wed Dec 15 2021 00:23:03 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/82831/how-do-i-check-whether-a-file-exists-without-exceptions

star

Wed Dec 15 2021 07:18:47 GMT+0000 (Coordinated Universal Time)

@TheInspired

star

Wed Dec 15 2021 07:55:20 GMT+0000 (Coordinated Universal Time) https://www.codewars.com/kata/56d6b7e43e8186c228000637/solutions/javascript

@Evgeniya

star

Wed Dec 15 2021 09:50:34 GMT+0000 (Coordinated Universal Time)

@Matzel

star

Wed Dec 15 2021 13:38:16 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/extension/initializing?newuser

@M_nawasany

star

Wed Dec 15 2021 15:33:47 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/44465653/what-is-the-correct-way-to-destroy-an-element-created-with-renderer2

@mguoynes

star

Thu Dec 16 2021 03:05:54 GMT+0000 (Coordinated Universal Time)

@Precious1890

star

Thu Dec 16 2021 03:13:39 GMT+0000 (Coordinated Universal Time) https://h.daily-dev-tips.com/removing-a-env-file-from-git-history

@juancalle

star

Thu Dec 16 2021 07:47:08 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/36814100/pandas-to-numeric-for-multiple-columns

star

Thu Dec 16 2021 07:47:11 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/36814100/pandas-to-numeric-for-multiple-columns

star

Thu Dec 16 2021 07:47:21 GMT+0000 (Coordinated Universal Time)

@Tazeen

star

Thu Dec 16 2021 07:50:54 GMT+0000 (Coordinated Universal Time) https://www.codewars.com/kata/5a5915b8d39ec5aa18000030/train/javascript

@Evgeniya

star

Thu Dec 16 2021 07:54:22 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/18603270/progress-indicator-during-pandas-operations

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension