This file contains 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
2017-04-08 23:13:19> Program: Starting Squirrel Updater: --install . | |
2017-04-08 23:13:19> Program: Starting install, writing to C:\Users\ABRSS\AppData\Local\SquirrelTemp | |
2017-04-08 23:13:19> Program: About to install to: C:\Users\ABRSS\AppData\Local\atom | |
2017-04-08 23:13:19> Program: Install path C:\Users\ABRSS\AppData\Local\atom already exists, burning it to the ground | |
2017-04-08 23:13:20> Utility: The files inside C:\Users\ABRSS\AppData\Local\atom could not be read | |
2017-04-08 23:13:20> Utility: The directories inside C:\Users\ABRSS\AppData\Local\atom could not be read | |
2017-04-08 23:13:20> IEnableLogger: Failed to remove existing directory on full install, is the app still running???: System.UnauthorizedAccessException: Access to the path 'C:\Users\ABRSS\AppData\Local\atom' is denied. | |
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) | |
at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes) | |
at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext() |
This file contains 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 | |
function detect($body){ | |
if(preg_match("%(?:youtube(?:-nocookie)?\.com/(?:[\w\-?&!#=,;]+/[\w\-?&!#=/,;]+/|(?:v|e(?:mbed)?)/|[\w\-?&!#=,;]*[?&]v=)|youtu\.be/)([\w-]{11})(?:[^\w-]|\Z)%i", $body)) { | |
preg_match("%(?:youtube(?:-nocookie)?\.com/(?:[\w\-?&!#=,;]+/[\w\-?&!#=/,;]+/|(?:v|e(?:mbed)?)/|[\w\-?&!#=,;]*[?&]v=)|youtu\.be/)([\w-]{11})(?:[^\w-]|\Z)%i", $body, $matches); | |
if(isset($matches[1])) { | |
$body = 'http://www.youtube.com/embed/'.$matches[1]; | |
}else{ |
This file contains 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://ipapi.co/json/ |
This file contains 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> | |
<title>Button over image on Hover - HackerRahul.com</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> | |
<body> | |
<div class="w3-container"> | |
<h1>Show Button Over Image on hover</h1> | |
<div class="w3-display-container w3-hover-opacity" style="width:50%"> |
This file contains 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
CREATE TABLE `infinite_scroll_post` ( | |
`id` int(11) NOT NULL, | |
`title` varchar(255) NOT NULL, | |
`body` varchar(255) NOT NULL, | |
`url` varchar(5000) NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
This file contains 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 | |
include 'db.php'; | |
if (isset($_GET['offset']) && isset($_GET['limit'])) { | |
$offset = $_GET['offset']; | |
$limit = $_GET['limit']; | |
$data = mysqli_query($conn, "SELECT * FROM infinite_scroll_post LIMIT {$limit} OFFSET {$offset}"); | |
while($row = mysqli_fetch_array($data)){ | |
echo "<div class='w3-card-4' > |
This file contains 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 = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$db = "infinite_scrolling"; | |
// Create connection | |
$conn = mysqli_connect($servername, $username, $password, $db); | |
// Check connection | |
if (!$conn) { | |
die("Connection failed: " . mysqli_connect_error()); |
This file contains 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
$(window).scrollTop() >= $(document).height() - $(window).height() |
This file contains 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
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var start = 0; | |
$.ajax({ | |
type : "GET", | |
url : "get_data.php", | |
data : { | |
'offset' : 0, | |
'limit' : 5 | |
}, |
This file contains 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 = "localhost"; | |
$username = "username"; | |
$password = "password"; | |
$dbname = "myDB"; | |
// Create connection | |
$conn = new mysqli($servername, $username, $password, $dbname); | |
// Check connection | |
if ($conn->connect_error) { |
OlderNewer