This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
{%- for user in craft.users.addSelect(['users.password']).all() -%} | |
<craftUser> | |
<id>{{ user.id }}</id> | |
<username>{{ user.username }}</username> | |
<name>{{ user.name }}</name> | |
<firstName>{{ user.firstName }}</firstName> | |
<lastName>{{ user.lastName }}</lastName> | |
<email>{{ user.email }}</email> | |
<hashedPassword>{{ user.password }}</hashedPassword> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
import csv | |
api_base_url = 'https://www.bloglovin.com/api' | |
url = api_base_url + '/v2/search?q=mensfashion&t=true' | |
# cat URI format: /v2/blogs/21?page=1&country=us | |
# search URI format: /v2/search?q=mensfashion&t=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# - https://getbootstrap.com/docs/4.0/components/pagination/ -#} | |
{# - https://docs.craftcms.com/v3/dev/tags/paginate.html -#} | |
{%- set query = craft.entries.section('yourSectionHandle').limit(10) -%} | |
{%- paginate query as pageInfo, pageEntries -%} | |
<ol> | |
{%- for entry in pageEntries -%} | |
<li><a href="{{ entry.url }}">{{ entry.title }}</a></li> | |
{%- endfor -%} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "example.org"; | |
$database = "your_db_name"; | |
$username = "your_username"; | |
$password = "your_password"; | |
try { | |
$conn = new PDO("mysql:host=$servername;dbname=$database", $username, $password); | |
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Form POST</title> | |
<link rel="stylesheet" href="my-rad-styles.css"> | |
</head> | |
<body> | |
<div class="main-content"> | |
<h1>Form POST Request Example</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My Awesome Website - Page 2</title> | |
<link rel="stylesheet" type="text/css" href="css/app.css"> | |
<script src="behavior.js"></script> | |
</head> | |
<body> | |
<section class="main"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: #FF0080; | |
} | |
.main { | |
background-color: white; | |
width: 50%; | |
margin: 0 auto 50px auto; | |
padding: 30px; | |
border: 5px solid orange; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My Awesome Website</title> | |
<link rel="stylesheet" type="text/css" href="css/app.css"> | |
<script src="behavior.js"></script> | |
</head> | |
<body> | |
<!-- here's my awesome comment --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* small (568px) */ | |
@media screen and (min-width: 35.5em) { | |
} | |
/* medium (768px) */ | |
@media screen and (min-width: 48em) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery Mobile Pagecontainer Widget Events (v1.4.5) | |
$(document).on('pagecontainerbeforechange', function(event, ui) { | |
console.log('pagecontainerbeforechange'); | |
}); | |
$(document).on('pagecontainerbeforehide', function(event, ui) { | |
console.log('pagecontainerbeforehide'); | |
}); | |
$(document).on('pagecontainerbeforeload', function(event, ui) { | |
console.log('pagecontainerbeforeload'); | |
}); |
NewerOlder