Skip to content

Instantly share code, notes, and snippets.

View antxd's full-sized avatar
:octocat:
evolving

Jose Marin antxd

:octocat:
evolving
View GitHub Profile

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@antxd
antxd / customer_logos_infinite.html
Last active July 27, 2020 19:14
Customer Logos Infinite Scroll Only CSS
<!DOCTYPE html>
<html>
<head>
<!--
Dev by: Lihex Andrade 27/07/2020
Demo: https://codepen.io/antxd/pen/gOPJpbW
-->
<title>Customer Logos Infinite Scroll Only CSS</title>
<style>
.slider {
@antxd
antxd / imgbb API Example
Last active July 20, 2023 19:25
Simple example of case use imgbb API
<?php
function save_record_image($image,$name = null){
$API_KEY = 'YOUR_CLIENT_API_KEY';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.imgbb.com/1/upload?key='.$API_KEY);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false);
$extension = pathinfo($image['name'],PATHINFO_EXTENSION);
$file_name = ($name)? $name.'.'.$extension : $image['name'] ;
@antxd
antxd / minify.php
Created September 2, 2019 16:07
A small PHP-Script for minifying CSS
<?php
// specify your css-files and their order here
$cssFiles = array(
'normalize.css', 'style.css', 'print.css', 'colorbox.css'
);
// the file to write the compressed css to
$minFileName = 'minified.css';
// thats all, just call this file in your browser and it will
// build you a minimized css-file. then just link to this single
@antxd
antxd / editor.html
Created July 31, 2019 20:29
Example of wysiwyg-html-editor with Trumbowyg
<!DOCTYPE html>
<html>
<head>
<title>Ejemplo editor</title>
<!-- copiar al principio de detalle -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.15.0/ui/trumbowyg.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.15.0/trumbowyg.min.js"></script>
<!-- hasta aqui -->
</head>
@antxd
antxd / image_donwloader.php
Created July 31, 2019 20:23
Simple script to donwload images from array list
<?php
//https://www.sothebyshomes.com/nyc/sales/0019018
$bajar = array("https://assets.sothebyshomes.com/photos/EFF0BA8C-18D2-4DBF-8EE6-D34BE1C9E7A8_1050x700.jpg","https://assets.sothebyshomes.com/photos/533F4D9C-28C1-4155-8EFD-7F950EC095D1_1050x700.jpg","https://assets.sothebyshomes.com/photos/99D17B81-2438-4289-82F9-DFE9E97E0A8B_1050x700.jpg","https://assets.sothebyshomes.com/photos/68F769B9-8DD1-49DC-BBD9-F1BF465C474C_1050x700.jpg","https://assets.sothebyshomes.com/photos/82EFF43A-8C3B-42E8-88E8-B99E5C79484D_1050x700.jpg","https://assets.sothebyshomes.com/photos/2B428F3E-AA84-492C-BD07-E084AEFEC609_1050x700.jpg","https://assets.sothebyshomes.com/photos/FF3C7BB7-3BDF-4371-AE58-EC38176EDB38_1050x700.jpg","https://assets.sothebyshomes.com/photos/5DCCC9A2-2D38-4480-93E6-9040CF18AC01_1050x700.jpg","https://assets.sothebyshomes.com/photos/4A355387-8C9C-4A19-AE4D-4D26702511FE_1050x700.jpg","https://assets.sothebyshomes.com/photos/CC096035-0B55-4C5C-B4EF-4B3EF829A359_1050x700.jpg","https://assets.sothebyshomes.com
@antxd
antxd / map.html
Created July 31, 2019 20:22
Awesome GoogleMap example
<style type="text/css">
body * {
-webkit-text-size-adjust: none;
box-sizing: border-box;
}
.map-wrapper {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
@antxd
antxd / gen_passwords.php
Created July 31, 2019 20:20
Simple password_hash generator
<?php
if(!empty($_GET['pass'])){
echo password_hash($_GET['pass'], PASSWORD_DEFAULT);
}
?>
<form method="GET">
<input type="text" name="pass"><button type="submit">CREAR</button>
</form>
@antxd
antxd / mini_scrapping.js
Created July 31, 2019 20:19
extract info on any website from DOM inserting jQuery on console
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
jQuery.noConflict();
var lista = '';
$("._jpemon").find("li").each(function() {
var src = $("img", this).prop("src");
@antxd
antxd / index.html
Created June 28, 2019 16:01
Maintenance Page
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="robots" content="noindex"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }