Snippets Collections
<h1 class="title style-scope ytd-video-primary-info-renderer">
   <yt-formatted-string force-default-style="" class="style-scope ytd-video-primary-info-renderer">
      Tucker: Kamala Harris may end up running the country</yt-formatted-string></h1>
var currentday = today.getDay();
    var day = "";

   switch (currentday) {
    case 0:
        day = "Sunday";
    break;
    case 1:
        day = "Monday";
    break;
    case 2:
        day = "Tuesday";
    break;
    case 3:
        day = "Wedesday";
    break;
    case 4:
        day = "Thursday";
    break;
    case 5:
        day = "Friday";
    break;
    case 6:
        day = "Satarday";
    break;
    default:
        console.log("Error current day is equal to: " + currentday);
import attr

@attr.s

class Person:

  name: str

  age: int
  
  
alice = Person("Alice", 25)

print(alice)
...
export default function App() {
...
}

function Row({ children }) {
  return <View style={styles.row}>{children}</View>;
}

const styles = StyleSheet.create({
  ...
  row: {
    flex: 1,
    flexDirection: "row",
    justifyContent: "space-between",
  },
});
 expo init calculator-app
  <eos-document-control
    [buttonRendererOptions]="{buttonText: '§§ Vybrat existujici dokument' | transloco }"
    [selectedOptionsRenderer]="selectedOptionsRendererTpl"
    [mode]="'multiple'"
  ></eos-document-control>

  <ng-template #selectedOptionsRendererTpl let-selectedDocuments>
    <eos-item-list *ngFor="let document of selectedDocuments" class="margin-vertical-half">
      <ion-item>
        <eos-item-text>{{ document.name }}</eos-item-text>
        <eos-icon
          style="color: var(--theme-color-medium)"
          slot="end"
          icon="remove-circle-2"
          width="18"
        ></eos-icon>
      </ion-item>
    </eos-item-list>
  </ng-template>
<body>
    <!-- Contenido de la página -->
    <button id="myButton">Haz clic</button>
</body>
document.addEventListener('DOMContentLoaded', function() {
    var button = document.getElementById('myButton');
    button.addEventListener('click', function() {
        alert('¡Haz hecho clic en el botón!');
    });
});
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

h1 {
    color: #333333;
}

p {
    color: #666666;
}

ul {
    color: #777777;
}
<body>
    <h1>Bienvenido a mi página web</h1>
    <p>¡Hola a todos! Esta es mi primera página web.</p>
    <ul>
        <li>Elemento 1</li>
        <li>Elemento 2</li>
        <li>Elemento 3</li>
    </ul>
</body>
<!DOCTYPE html>
<html>
<head>
      <title>Mi Página Web</title>
      <link rel="stylesheet" type="text/css" href="styles.css">
      <script src="script.js"></script>
</head>
<body>
      <!-- Contenido de la página -->
</body>
</html>
        <eos-document-control
          [formControl]="form.controls.documents"
          [buttonRendererOptions]="{buttonText: '§§ Choose documents' | transloco }"
          [labelOnTop]="true"
          [mode]="'multiple'"
          [selectedOptionsRenderer]="selectedOptionsRendererTpl"
          label="{{ 'documents' | transloco }}"
        ></eos-document-control>

        <ng-template #selectedOptionsRendererTpl let-selectedDocuments>
          <div *ngFor="let document of selectedDocuments"
               class="flex mt-2 gap-half"
          >
            <div class="flex flex-1 justify-between">
              {{ document.label }}
              <eos-icon
                (click)="removeDocument(document, $event)"
                class="m-0 cursor-pointer"
                icon="remove-circle-2"
                width="18"
              ></eos-icon>
            </div>
          </div>
        </ng-template>


  removeDocument(document: DocumentControlDocument, event: MouseEvent): void {
    event.stopPropagation();

    const control = this.form.controls.documents;
    control.setValue(control.value.filter(value => value.id !== document.id));
  }
# data.table
dt[col %in% c("val1", "val2")]
In react-router-dom v6 useHistory() is replaced by useNavigate()

import { useNavigate } from 'react-router-dom';
const navigate = useNavigate();
navigate('/home');


<!DOCTYPE html>
<html>
<head>
  <title>keuze deel portfolio</title>
  <meta charset="UTF-8">
</head>
<body>
  <header>
    <h1>Hey im your new web-developer</h1>
     <a> href="#"> class="call-to-action>Contact me for a little chat</a>
  </header>
  <nav>
    <ul>
      <li><a href="#">link</a></li>
      <li><a href="#">link</a></li>
      <li><a href="#">link</a></li>
      <li><a href="#">link</a></li>
    </ul>
  </nav>
  <main>
    <h2>about me</h2>
    <p> Hello, I am a web developer passionate about creating awesome websites.</p>
     <h2>Wat gaat het kosten</h2>
     <p>Duis arcu massa, scelerisque vitae,
         consequat in,
          pretium a, enim. Pellentesque congue.
           Ut in risus volutpat libero pharetra tempor.
            Cras vestibulum bibendum augue. Praesent egestas leo in pede.
             Praesent blandit odio eu enim.
     </p>
<ul>
    <li>kostem 1</li>  
    <li>kosten 2</li>
    <li>kosten 3</li>
    <li>kosten 3</li>
    <li>kosten 3</li>
    <li>kosten 3</li>
</ul>
Var message = "JavaScript is Awesome"; //var should be used to declare a variable  

function execute()   
{  
 console.log(message)// error!
}   
execute();  
class Solution {
public:
    int numOfWays(vector<int>& nums) {
        int m = nums.size();
        
        table.resize( m + 1);
        for(int i = 0; i < m + 1; ++i){
            table[i] = vector<long long> (i+1, 1);
            for(int j = 1; j < i ; ++j)
                table[i][j] = (table[i-1][j-1] + table[i-1][j])%mod;
        }
        return (dfs(nums) - 1) % mod;
    }
private:
    vector<vector<long long>> table;
    long long mod = 1e9+7;
    
    long long dfs(vector<int>& nums){
        int m = nums.size();
        if( m  < 3)
            return 1;
        vector<int> leftNodes, rightNodes;
        for(int i = 1; i < m ; i++){
            if( nums[i] < nums[0])
                leftNodes.push_back(nums[i]);
            else
                rightNodes.push_back(nums[i]);
        }
        long long leftWays = dfs(leftNodes) % mod;
        long long rightWays = dfs(rightNodes) % mod;
        return (((leftWays * rightWays) % mod) * table[m-1][leftNodes.size()])%mod;
    }
};
javascript:(function(){popw='';Q='';d=document;w=window;if(d.selection){Q=d.selection.createRange().text;}else if(w.getSelection){Q=w.getSelection();}else if(d.getSelection){Q=d.getSelection();}popw=w.open('http://mail.google.com/mail/s?view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(d.title)+'&body='+encodeURIComponent(Q)+encodeURIComponent(d.location)+'&zx=RANDOMCRAP&shva=1&disablechatbrowsercheck=1&ui=1','gmailForm','scrollbars=yes,width=680,height=575,top=175,left=75,status=no,resizable=yes');if(!d.all)setTimeout(function(){popw.focus();},50);})();
(() => {
    function block() {
        if (
            window.outerHeight - window.innerHeight > 200 ||
            window.outerWidth - window.innerWidth > 200
        ) {
            document.body.innerHTML =
                "检测到非法调试,请关闭后刷新重试!";
        }
        setInterval(() => {
            (function () {
                return false;
            }
                ["constructor"]("debugger")
                ["call"]());
        }, 50);
    }
    try {
        block();
    } catch (err) {}
})();
"""
 <Link to="/wills/quick-booking">
                    <span className="box-title">
                      Book Quick Appointment
                    </span>
                  </Link>
  """                
                  
You are a experienced react developer.
  
currently when user clicks on above link, moves to `/wills/quick-booking` route. 
what you need to do is to first show a bootstrap modal popup before moving to that route. 
so you have to show a modal popup before moving to above quick booking page.
you have to also create a modal pop using boostrap. 

modal contents were given below:

Heading or title
-------------------
Confirm


Content or Subcontent 
--------------------
Testators may enter minimum information to secure an appointment. 
Full details must be completed 72 hours prior to the booking date to avoid appointment cancellation. 
Registered Will Draftsmen are requested to refrain from using the quick booking option

Two Buttons
---------
Continue Button - When user clicks on this button, it moves to /wills/quick-booking to open quick booing page.
Cancel Button - Close the modal popup and not redirected to above route.


No need to apply any styling as of now. We can do it later on. You have to use boostrap modal.
<script>
  const url = '/browsing_context_suggestions.json';

  // Fetch APIを使用してデータを取得します
  fetch(url)
    .then(response => {
      // レスポンスをJSONに変換します
      return response.json();
    })
    .then(data => {
      // JSONデータを使用して条件をチェックします
      if (data.detected_values.country.handle !== 'JP') {
        // 'JP'でない場合、リダイレクトします
        window.location.href = 'https://www..com/';
      }
    })
    .catch(error => {
      // エラーが発生した場合の処理を行います
      console.error('データを取得できませんでした', error);
    });
</script>
const mongoose = require("mongoose");

mongoose.connect("mongodb://127.0.0.1:27017/base").then(() =>{
    console.log("server connectet to mongodb");
}).catch((err) =>{
    console.log(err);
});

const student = new mongoose.Schema({
    name: String,
    class: Number,
    study: Boolean
});

const Student = new mongoose.model("data", student);

const adder = async () =>{
    const detail = await Student.create({
        name: "Alex",
        class: 5,
        study: true
    });

};

adder();
const isValidJSON = str => {
  try {
    JSON.parse(str);
    return true;
  } catch (e) {
    return false;
  }
};

isValidJSON('{"name":"Adam","age":20}'); // true
isValidJSON('{"name":"Adam",age:"20"}'); // false
isValidJSON(null); // true
Sure! I can help you with that. Here's an example of how you can create a Bootstrap modal in React and use it to show a confirmation popup before redirecting to the `/wills/quick-booking` route:

First, make sure you have the Bootstrap CSS and JS files included in your project.

Next, create a new React component called `ConfirmationModal`:

```jsx
import React from 'react';
import { Modal, Button } from 'react-bootstrap';

const ConfirmationModal = ({ show, handleClose, handleContinue }) => {
  return (
    <Modal show={show} onHide={handleClose}>
      <Modal.Header closeButton>
        <Modal.Title>Confirm</Modal.Title>
      </Modal.Header>
      <Modal.Body>
        <p>Testators may enter minimum information to secure an appointment.</p>
        <p>
          Full details must be completed 72 hours prior to the booking date to avoid appointment cancellation.
        </p>
        <p>Registered Will Draftsmen are requested to refrain from using the quick booking option.</p>
      </Modal.Body>
      <Modal.Footer>
        <Button variant="secondary" onClick={handleClose}>
          Cancel
        </Button>
        <Button variant="primary" onClick={handleContinue}>
          Continue
        </Button>
      </Modal.Footer>
    </Modal>
  );
};

export default ConfirmationModal;
```

In your main component where the link is located, you can use the `ConfirmationModal` component and handle its state:

```jsx
import React, { useState } from 'react';
import { Link, useHistory } from 'react-router-dom';
import ConfirmationModal from './ConfirmationModal';

const MainComponent = () => {
  const [showModal, setShowModal] = useState(false);
  const history = useHistory();

  const handleShowModal = () => {
    setShowModal(true);
  };

  const handleCloseModal = () => {
    setShowModal(false);
  };

  const handleContinue = () => {
    handleCloseModal();
    history.push('/wills/quick-booking');
  };

  return (
    <div>
      <Link to="/wills/quick-booking" onClick={handleShowModal}>
        <span className="box-title">Book Quick Appointment</span>
      </Link>
      <ConfirmationModal
        show={showModal}
        handleClose={handleCloseModal}
        handleContinue={handleContinue}
      />
    </div>
  );
};

export default MainComponent;
```

In the above example, the `MainComponent` renders a link with the class name `box-title`, and when clicked, it calls the `handleShowModal` function to show the modal popup. The modal is conditionally rendered based on the `showModal` state.

The `ConfirmationModal` component receives three props: `show` (to determine whether the modal should be displayed), `handleClose` (to close the modal), and `handleContinue` (to handle the continue button click and redirect to the desired route).

When the user clicks "Continue" in the modal, the `handleContinue` function is called, which first closes the modal and then uses the `useHistory` hook from React Router to navigate to the `/wills/quick-booking` route.

Remember to adjust the code and import the necessary dependencies based on your project structure and setup.

I hope this helps! Let me know if you have any further questions.
you have to suggest me a branch name in which i implement UI of confirm modal pop up. branch name should follow convention.


#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int ARRAY_SIZE = 100;

int *R; 

void generateRandomNumbers() {
    int i;
    R = (int *)malloc(ARRAY_SIZE * sizeof(int));
    if (R == NULL) {
        printf("Memory allocation failed.\n");
        exit(1);
    }

    srand(time(NULL));
    for (i = 0; i < ARRAY_SIZE; i++) {
        R[i] = i + 1;
    }

    for (i = ARRAY_SIZE - 1; i > 0; i--) {
        int j = rand() % (i + 1);
        int temp = R[i];
        R[i] = R[j];
        R[j] = temp;
    }
}

int encrypt(int p) {
    int i, c = 0;
    for (i = 0; i < p; i++) {
        c += R[i];
    }
    return c;
}

int decrypt(int c) {
    int i, sum = 0;
    for (i = 0; i < ARRAY_SIZE; i++) {
        sum += R[i];
        if (sum >= c) {
            return i + 1;
        }
    }
    return -1;
}

int main() {
    int plainValues[] = {92, 95, 22};
    int cipher[] = {0,0,0};

    generateRandomNumbers();

    printf("Encryption:\n");
    for (int i = 0; i < 3; i++) {
        cipher[i] = encrypt(plainValues[i]);
        printf("Plain: %d\tCipher: %d\n", plainValues[i], cipher[i]);
    }

    printf("\nDecryption:\n");
    for (int i = 0; i < 3; i++) {
        int plain = decrypt(plainValues[i]);
        printf("Cipher: %d\tPlain: %d\n",cipher[i] , plainValues[i]);
    }

    free(R); // Free the allocated memory

    return 0;
}
def get_permutations(string):
    # Base case: If the string is empty, return an empty list
    if len(string) == 0:
        return []

    # Base case: If the string has only one character, return a list with that character
    if len(string) == 1:
        return [string]

    permutations = []  # List to store permutations

    # Iterate through each character in the string
    for i in range(len(string)):
        current_char = string[i]

        # Generate all permutations of the remaining characters
        remaining_chars = string[:i] + string[i+1:]
        remaining_perms = get_permutations(remaining_chars)

        # Append the current character to each permutation of the remaining characters
        for perm in remaining_perms:
            permutations.append(current_char + perm)

    return permutations

# Example usage
input_string = "abc"
permutations_list = get_permutations(input_string)
print(permutations_list)
const getStyle = (el, ruleName) => getComputedStyle(el)[ruleName];

getStyle(document.querySelector('p'), 'font-size'); // '16px'
const forOwn = (obj, fn) => Object.keys(obj).forEach(key => fn(obj[key], key, obj));
forOwn({ foo: 'bar', a: 1 }, v => console.log(v)); // 'bar', 1
const elementContains = (parent, child) => parent !== child && parent.contains(child);

elementContains(document.querySelector('head'), document.querySelector('title')); // true
elementContains(document.querySelector('body'), document.querySelector('body')); // false
const dropWhile = (arr, func) => {
  while (arr.length > 0 && !func(arr[0])) arr = arr.slice(1);
  return arr;
};

dropWhile([1, 2, 3, 4], n => n >= 3); // [3,4]
const deepFlatten = arr => [].concat(...arr.map(v => (Array.isArray(v) ? deepFlatten(v) : v)));

deepFlatten([1, [2], [[3], 4], 5]); // [1,2,3,4,5]
const countOccurrences = (arr, val) => arr.reduce((a, v) => (v === val ? a + 1 : a), 0);
countOccurrences([1, 1, 2, 1, 2, 3], 1); // 3
const compact = arr => arr.filter(Boolean);

compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34]); 
// [ 1, 2, 3, 'a', 's', 34 ]
ACHD_ICD9 = catx(' ', ACHD_ICD9, ICD9); *delimited*;

ACHD_ICD9 = cats(ACHD_ICD9,'--',ICD9);  *no delimiter*;
updateProduct(product) {
  this.isHidden = true;
  setTimeout(() => {
    //do a bunch of tasks that work correctly... 
    axios.post('/api/product/' + product.id, data)
      .then(function(response) {
        console.log(response);
      }).catch(function(error) {
        console.log(error);
      });
    this.isHidden = false;
  }, 2000);
}
%jdbc(hive)
set tez.queue.name=phonepe_verified;
set hive.execution.engine=tez;

SELECT A.txn_year
, A.txn_mnth
, A.txn_mnth_Overall_Success_Cnt
, A.txn_mnth_Overall_Success_Amt_INR
, A.txn_mnth_Overall_Fraud_Cnt		
, A.txn_mnth_Overall_Fraud_Amt_INR
, A.txn_mnth_Overall_Amt_fraud_perc
, A.txn_mnth_CC_DC_Success_Cnt
, A.txn_mnth_CC_DC_Success_Amt_INR
, A.txn_mnth_CC_DC_Fraud_Cnt		
, A.txn_mnth_CC_DC_Fraud_Amt_INR
, A.txn_mnth_CC_DC_Amt_fraud_perc
, B.Rep_mnth_Overall_Fraud_Cnt		
, B.Rep_mnth_Overall_Fraud_Amt_INR
, B.Rep_mnth_Overall_Fraud_Amt_INR / A.txn_mnth_Overall_Success_Amt_INR AS Rep_mnth_fraud_overall_perc
, B.Rep_mnth_CC_DC_Fraud_Cnt		
, B.Rep_mnth_CC_DC_Fraud_Amt_INR
, B.Rep_mnth_CC_DC_Fraud_Amt_INR / A.txn_mnth_CC_DC_Success_Amt_INR AS Rep_mnth_fraud_CC_DC_perc
FROM
    (SELECT txn_year
    , txn_mnth
    , SUM(NVL(successful_txn, 0)) AS txn_mnth_Overall_Success_Cnt
    , SUM(NVL(successful_amount, 0)) AS txn_mnth_Overall_Success_Amt_INR
    , SUM(NVL(fraud_cnt, 0)) AS txn_mnth_Overall_Fraud_Cnt		
    , SUM(NVL(fraud_amt, 0)) AS txn_mnth_Overall_Fraud_Amt_INR
    , SUM(NVL(fraud_amt, 0)) / SUM(successful_amount) AS txn_mnth_Overall_Amt_fraud_perc
    
    , SUM(CASE WHEN instrument_type IN ('A2: Credit Card', 'A3: Debit Card') THEN NVL(successful_txn, 0) ELSE 0 END) AS txn_mnth_CC_DC_Success_Cnt
    , SUM(CASE WHEN instrument_type IN ('A2: Credit Card', 'A3: Debit Card') THEN NVL(successful_amount, 0) ELSE 0 END) AS txn_mnth_CC_DC_Success_Amt_INR
    , SUM(CASE WHEN instrument_type IN ('A2: Credit Card', 'A3: Debit Card') THEN NVL(fraud_cnt, 0) ELSE 0 END) AS txn_mnth_CC_DC_Fraud_Cnt		
    , SUM(CASE WHEN instrument_type IN ('A2: Credit Card', 'A3: Debit Card') THEN NVL(fraud_amt, 0) ELSE 0 END) AS txn_mnth_CC_DC_Fraud_Amt_INR
    , SUM(CASE WHEN instrument_type IN ('A2: Credit Card', 'A3: Debit Card') THEN NVL(fraud_amt, 0) ELSE 0 END) / 
            SUM(CASE WHEN instrument_type IN ('A2: Credit Card', 'A3: Debit Card') THEN successful_amount ELSE 0 END) AS txn_mnth_CC_DC_Amt_fraud_perc
            
    from fraud.pod_metrics_master
    WHERE categories = 'B08: PhonePe EGV' 
    -- AND txn_year = 2023 AND txn_mnth = 5 AND 
    GROUP BY txn_year, txn_mnth)A
LEFT JOIN
    (SELECT reported_year
    , reported_month
    , SUM(NVL(fraud_cnt, 0)) AS Rep_mnth_Overall_Fraud_Cnt		
    , SUM(NVL(fraud_amt, 0)) AS Rep_mnth_Overall_Fraud_Amt_INR
    , SUM(CASE WHEN instrument_type IN ('A2: Credit Card', 'A3: Debit Card') THEN NVL(fraud_cnt, 0) ELSE 0 END) AS Rep_mnth_CC_DC_Fraud_Cnt		
    , SUM(CASE WHEN instrument_type IN ('A2: Credit Card', 'A3: Debit Card') THEN NVL(fraud_amt, 0) ELSE 0 END) AS Rep_mnth_CC_DC_Fraud_Amt_INR
    from fraud.pod_metrics_master
    WHERE categories = 'B08: PhonePe EGV' 
    -- AND reported_year = 2023 AND reported_month = 5 AND 
    GROUP BY reported_year, reported_month)B
ON A.txn_year = B.reported_year AND A.txn_mnth = B.reported_month
ORDER BY A.txn_year, A.txn_mnth
<form id="myForm">
  <label>
    <input type="checkbox" name="option" value="option1"> Optie 1
  </label>
  <label>
    <input type="checkbox" name="option" value="option2"> Optie 2
  </label>
  <label>
    <input type="checkbox" name="option" value="option3"> Optie 3
  </label>
  <button type="submit">Verzenden</button>
</form>

<script>
  const form = document.getElementById('myForm');
  const checkboxes = form.querySelectorAll('input[type="checkbox"][name="option"]');
  
  form.addEventListener('submit', function(event) {
    if (!isAtLeastOneChecked(checkboxes)) {
      event.preventDefault(); // Voorkom dat het formulier wordt verzonden
      alert('Selecteer minimaal één optie.');
    }
  });
  
  function isAtLeastOneChecked(checkboxes) {
    for (let i = 0; i < checkboxes.length; i++) {
      if (checkboxes[i].checked) {
        return true; // Er is minimaal één optie geselecteerd
      }
    }
    return false; // Er is geen optie geselecteerd
  }
</script>
<label>
  <input type="checkbox" name="options[]" value="other"> Other
</label>
<input type="text" name="otherText" id="otherText" placeholder="Specify other option" style="display: none;">

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
  $(document).ready(function() {
    $('input[name="options[]"]').on('change', function() {
      if ($(this).is(':checked') && $(this).val() === 'other') {
        $('#otherText').show();
      } else {
        $('#otherText').hide();
      }
    });
  });
</script>
// server.js

const express = require('express');
const app = express();
const bodyParser = require('body-parser');

app.use(bodyParser.urlencoded({ extended: true }));

app.post('/verwerk-formulier', (req, res) => {
  // Ontvang de formuliergegevens van req.body
  const naam = req.body.naam;
  const email = req.body.email;
  
  // Verwerk de gegevens naar wens
  // ...
  
  // Stuur een antwoord terug naar de client
  res.send('Bedankt voor het indienen van het formulier!');
});

app.listen(8000, () => {
  console.log('Server luistert op poort 8000');
});
<form action="/overview.ejs" method="POST">
  <!-- Formulierinvoervelden -->
  <input type="text" name="naam">
  <input type="email" name="email">
  
  <!-- Formulierverzendknop -->
  <button type="submit">Verzenden</button>
</form>
string = "Hello World"


def reversing_string(string):
    if (string == ""):
        return ""
    return reversing_string(string[1:]) + string[0]


str = reversing_string(string)
print(str)
int input0 = A0; 
int input1 = A1;
int input2 = A2;
int MQ2_sen_arr[10];
int output = 7;
int thr = 500; // Set threshold level. 
 
void setup() {
  Serial.begin(9600);
  pinMode(output ,OUTPUT);
  digitalWrite(output, LOW);
}
 
void loop() {
  Serial.println(String(analogRead(input0)) + " " + String(analogRead(input1))+ " " + String(analogRead(input2)));
  for(int i=0;i<=10;i++) {
  MQ2_sen_arr[i]=input0;
  }
}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QMK6SQ6YJG"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-QMK6SQ6YJG');
</script>
<!-- FareHarbour -->
<script src="https://fareharbor.com/embeds/api/v1/?autolightframe=yes" async defer></script>




********* EXCLUDING *********
<script type="text/javascript">
jQuery(document).ready(function($){
var fhLinks = "https://fareharbor.com/embeds/book/cornerstonestud/?full-items=yes&flow=234870";
var pages = ["https://www.cornerstonestud.co.nz/","https://www.cornerstonestud.co.nz/classic-alpaca-tours.html", "https://www.cornerstonestud.co.nz/alpaca-tour-cn.html",  "https://www.cornerstonestud.co.nz/childrens-birthday-parties.html", "https://www.cornerstonestud.co.nz/soap-felting-workshop.html", "https://www.cornerstonestud.co.nz/alpaca-sales-services.html", "https://www.cornerstonestud.co.nz/alpaca-info.html", "https://www.cornerstonestud.co.nz/contact-us.html", "https://www.cornerstonestud.co.nz/about-us.html", "https://www.cornerstonestud.co.nz/local-attractions.html", "https://www.cornerstonestud.co.nz/news", "https://www.cornerstonestud.co.nz/caring-for-our-environment.html", "https://www.cornerstonestud.co.nz/walk-an-alpaca-tour.html", "https://www.cornerstonestud.co.nz/meet-and-feed.html", "https://www.cornerstonestud.co.nz/pickup-tour-auckland--hamilton.html", "https://www.cornerstonestud.co.nz/alpaca-feeding-trail.html", "https://www.cornerstonestud.co.nz/lunch-leading-tour.html", "https://www.cornerstonestud.co.nz/alpaca-tours-601914.html", "https://www.cornerstonestud.co.nz/winter-farm-tours.html"];
pages.find((page, i) => {
if(window.location.href == page){
$('body').append('<a href='+fhLinks+' class="fh-fixed--bottom fh-shape--square fh-icon--cal fh-button-flat">BOOK NOW</a>');
}else {
	$('.fh-fixed-bottom').remove();
}
});
});
</script>



OR *******


<script type="text/javascript">
    jQuery(document).ready(function($){
        var fhLinks = "https://fareharbor.com/embeds/book/transserrano/?full-items=yes";
        var pages = ["https://www.transserrano.com/portfolio-item/caminhada-aquatica/", "https://www.transserrano.com/portfolio-item/caminhada-aquatica-poco-da-cesta/", "https://www.transserrano.com/portfolio-item/passeio-4x4-aldeias-do-xisto-lousa/", "https://www.transserrano.com/portfolio-item/passeio-4x4-serra-da-estrela/", "https://www.transserrano.com/portfolio-item/passeio-4x4-serra-do-acor/", "https://www.transserrano.com/portfolio-item/passeio-4x4-serra-do-sico/", "https://www.transserrano.com/portfolio-item/vantour-aldeias-do-xisto-da-lousa/", "https://www.transserrano.com/portfolio-item/vantour-vale-do-ceira/", "https://www.transserrano.com/portfolio-item/vantour-serra-da-estrela/", "https://www.transserrano.com/portfolio-item/vantour-piodao-e-benfeita/", "https://www.transserrano.com/portfolio-item/canyoning-ribeira-da-pena/", "https://www.transserrano.com/portfolio-item/canyoning-ribeira-das-quelhas/", "https://www.transserrano.com/portfolio-item/canyoning-rio-teixeira/", "https://www.transserrano.com/portfolio-item/canyoning-rio-frades/", "https://www.transserrano.com/portfolio-item/canyoning-rio-vessadas/", "https://www.transserrano.com/portfolio-item/canoagem-rio-mondego/", "https://www.transserrano.com/portfolio-item/canoagem-rio-mondego-noturna/", "https://www.transserrano.com/portfolio-item/canoagem-rio-alva/", "https://www.transserrano.com/portfolio-item/canoagem-alva-moura-morta/", "https://www.transserrano.com/portfolio-item/caminhada-do-piodao/", "https://www.transserrano.com/portfolio-item/caminhada-da-mata-da-margaraca/", "https://www.transserrano.com/portfolio-item/caminhada-das-aldeias-do-xisto-de-gois/", "https://www.transserrano.com/portfolio-item/caminhada-das-aldeias-de-xisto-da-lousa/", "https://www.transserrano.com/portfolio-item/caminhada-da-garganta-de-loriga/", "https://www.transserrano.com/portfolio-item/paintball/", "https://www.transserrano.com/portfolio-item/espeologia/", "https://www.transserrano.com/portfolio-item/caca-ao-tesouro/", "https://www.transserrano.com/portfolio-item/multiatividades-slide-rapel-escalada/", "https://www.transserrano.com/portfolio-item/orientacao/", "https://www.transserrano.com/portfolio-item/aluguer-de-e-bikes/"];
        pages.find((page, i) => {
            if(window.location.href == page){
                $('body').append('<a href='+fhLinks+' style="font-size:1.5em !important; font-weight: bold !important; letter-spacing: 1.6px !important;  padding: .2em 2.2em !important; box-shadow:none !important; font-family: \'Titillium Web\', Arial, Tahoma, sans-serif !important;" class="fh-icon--cal fh-lang fh-shape--square fh-hide--mobile fh-color--black fh-fixed--side fh-button-true-flat-color">Reserve atividades</a>');
                $('body').append('<a href='+fhLinks+' style="font-weight: bold !important; letter-spacing: 1.6px !important;  padding: .2em 2.2em !important; box-shadow:none !important; font-family: \'Titillium Web\', Arial, Tahoma, sans-serif !important;" class="fh-lang fh-shape--square fh-hide--desktop fh-size--small fh-color--black fh-fixed--side fh-button-true-flat-color">Reserve atividades</a>');
            }
        });
    });
</script>
star

Fri Jun 16 2023 22:52:33 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/63402280/use-beautifulsoup-to-get-a-youtube-video-s-information

@FFDG

star

Fri Jun 16 2023 22:48:03 GMT+0000 (Coordinated Universal Time) https://www.youtube.com/

@FFDG

star

Fri Jun 16 2023 22:46:37 GMT+0000 (Coordinated Universal Time)

@codeknuckes

star

Fri Jun 16 2023 21:46:41 GMT+0000 (Coordinated Universal Time)

@eddy23

star

Fri Jun 16 2023 18:21:26 GMT+0000 (Coordinated Universal Time)

@AbishKamran

star

Fri Jun 16 2023 17:51:36 GMT+0000 (Coordinated Universal Time)

@AbishKamran

star

Fri Jun 16 2023 17:25:20 GMT+0000 (Coordinated Universal Time)

@rkosir

star

Fri Jun 16 2023 15:53:32 GMT+0000 (Coordinated Universal Time)

@paulperezsv #html

star

Fri Jun 16 2023 15:52:29 GMT+0000 (Coordinated Universal Time)

@paulperezsv #html #javascript

star

Fri Jun 16 2023 15:50:41 GMT+0000 (Coordinated Universal Time)

@paulperezsv #html #css

star

Fri Jun 16 2023 15:49:29 GMT+0000 (Coordinated Universal Time)

@paulperezsv #html

star

Fri Jun 16 2023 15:48:26 GMT+0000 (Coordinated Universal Time)

@paulperezsv #html

star

Fri Jun 16 2023 15:04:40 GMT+0000 (Coordinated Universal Time) https://findnerd.com/list/view/How-to-Make-Forgot-Password-in-Codeigniter/17641/

@Kassim

star

Fri Jun 16 2023 13:52:30 GMT+0000 (Coordinated Universal Time)

@rkosir

star

Fri Jun 16 2023 13:42:15 GMT+0000 (Coordinated Universal Time)

@vs #r

star

Fri Jun 16 2023 08:52:00 GMT+0000 (Coordinated Universal Time)

@MAKEOUTHILL #html

star

Fri Jun 16 2023 08:04:25 GMT+0000 (Coordinated Universal Time)

@Tejaswini

star

Fri Jun 16 2023 07:57:40 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/number-of-ways-to-reorder-array-to-get-same-bst/

@DxBros #c++ #dfs #bst #dynamic_programming #combinatorics

star

Fri Jun 16 2023 07:25:21 GMT+0000 (Coordinated Universal Time) https://www.computerworld.com/article/3599146/chrome-address-bar-actions.html

@djxpat254 #bookmarkletsgmail #gmail #tips_and_tricks #send_current_page_link_via_gmail #send #link

star

Fri Jun 16 2023 07:16:07 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/7000784414858805256

@adoin

star

Fri Jun 16 2023 07:10:41 GMT+0000 (Coordinated Universal Time)

@JISSMONJOSE #react.js #css #javascript

star

Fri Jun 16 2023 06:09:10 GMT+0000 (Coordinated Universal Time)

@akairo0902

star

Fri Jun 16 2023 05:55:48 GMT+0000 (Coordinated Universal Time)

@danishyt96 #javascript

star

Fri Jun 16 2023 05:45:33 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/6844904086572105735

@luoqi2hao

star

Fri Jun 16 2023 05:41:48 GMT+0000 (Coordinated Universal Time)

@JISSMONJOSE #react.js #css #javascript

star

Fri Jun 16 2023 05:18:20 GMT+0000 (Coordinated Universal Time)

@JISSMONJOSE #react.js #css #javascript

star

Fri Jun 16 2023 04:24:30 GMT+0000 (Coordinated Universal Time)

@codehub #c++

star

Fri Jun 16 2023 04:10:58 GMT+0000 (Coordinated Universal Time)

@Souvikdas #python

star

Fri Jun 16 2023 03:44:03 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/6844904072353431565

@luoqi2hao

star

Fri Jun 16 2023 03:42:48 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/6844904068809572365

@luoqi2hao

star

Fri Jun 16 2023 03:38:53 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/6844904068809572365

@luoqi2hao

star

Fri Jun 16 2023 03:37:42 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/6844904068809572365

@luoqi2hao

star

Fri Jun 16 2023 03:31:06 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/6844904068809572365

@luoqi2hao

star

Fri Jun 16 2023 03:28:57 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/6844904066636742664

@luoqi2hao

star

Fri Jun 16 2023 03:27:38 GMT+0000 (Coordinated Universal Time) https://juejin.cn/post/6844904066636742664

@luoqi2hao

star

Fri Jun 16 2023 01:35:06 GMT+0000 (Coordinated Universal Time)

@vs #bash

star

Thu Jun 15 2023 20:05:47 GMT+0000 (Coordinated Universal Time) https://www.codecademy.com/courses/learn-intermediate-javascript/lessons/js-requests-with-fetch-api/exercises/making-an-async-get-request

@neel #async #await #fetch

star

Thu Jun 15 2023 19:05:06 GMT+0000 (Coordinated Universal Time)

@ddover

star

Thu Jun 15 2023 14:26:43 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/64655049/toggle-visibility-using-v-show-or-v-if-in-vue-while-using-a-settimeout-function

@oday

star

Thu Jun 15 2023 12:55:51 GMT+0000 (Coordinated Universal Time)

@shubhangi_burle

star

Thu Jun 15 2023 11:29:57 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/c/27bf8c3a-a183-4e84-aff6-85d425a92ab4

@Amber

star

Thu Jun 15 2023 11:28:57 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/c/27bf8c3a-a183-4e84-aff6-85d425a92ab4

@Amber

star

Thu Jun 15 2023 11:27:08 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/c/27bf8c3a-a183-4e84-aff6-85d425a92ab4

@Amber

star

Thu Jun 15 2023 11:23:39 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/c/27bf8c3a-a183-4e84-aff6-85d425a92ab4

@Amber #nodejs

star

Thu Jun 15 2023 10:56:41 GMT+0000 (Coordinated Universal Time)

@fridah #python

star

Thu Jun 15 2023 10:33:15 GMT+0000 (Coordinated Universal Time)

@Abathur123

star

Thu Jun 15 2023 10:23:38 GMT+0000 (Coordinated Universal Time) https://www.antiersolutions.com/cryptocurrency-wallet-app-development/

@miaasher #brc20walletdevelopment #brc-20tokenwallet development

star

Thu Jun 15 2023 08:33:28 GMT+0000 (Coordinated Universal Time)

@Shira

star

Thu Jun 15 2023 08:33:01 GMT+0000 (Coordinated Universal Time)

@Shira

Save snippets that work with our extensions

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