Skip to content

Instantly share code, notes, and snippets.

View devuri's full-sized avatar

uri devuri

  • Mexico
View GitHub Profile
@devuri
devuri / css-concert-ticket-purchase.markdown
Created May 4, 2019 04:29
CSS Concert ticket purchase
@devuri
devuri / index.html
Created May 4, 2019 04:19
Movies Api tmdb $ajax
<body>
<h1 class="title">Movies</h1>
<ul id="favMovies">
</ul>
</body>
@devuri
devuri / index.html
Created May 4, 2019 04:18
is-selected Flickity Option
<div class="slide--parent">
<div class="parent--el">
<div class="two--col">
<div class="is-item has--img">
<figure class="the-img">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/602471/jake-ingle-168726%20copy.jpg" alt="">
</figure>
</div>
<div class="is-item has--content">
<div class="is-item--inner">
@devuri
devuri / index.html
Created May 4, 2019 04:17
Web Tv app
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<body ng-app="myApp" ng-controller="myCtrl">
<header>
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper grey darken-4">
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="#">Login</a></li>
<li><a href="#" data-activates="slide-out">Menu</a></li>
@devuri
devuri / flexbox-google-play-music-website.markdown
Created May 4, 2019 04:16
Flexbox Google Play Music Website
This example uses the Rest API PHP SDK of Paypal. To get it, just use composer.
@devuri
devuri / index.html
Created April 7, 2019 02:24
jQuery Password Generator
<h1>jQuery Password Generator <small>(v2)</small></h1>
<h4>Using jQuery to quickly and easily generate passwords.</h4>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control input-lg" rel="gp" data-size="32" data-character-set="a-z,A-Z,0-9,#">
<span class="input-group-btn"><button type="button" class="btn btn-default btn-lg getNewPass"><span class="fa fa-refresh"></span></button></span>
@devuri
devuri / php-block.js
Created March 15, 2019 23:32 — forked from pento/php-block.js
Converting a shortcode to a block: this method is fast to do, but a mediocre UX. You should only use this as a stopgap until you can implement a full block UI.
// License: GPLv2+
var el = wp.element.createElement,
registerBlockType = wp.blocks.registerBlockType,
ServerSideRender = wp.components.ServerSideRender,
TextControl = wp.components.TextControl,
InspectorControls = wp.editor.InspectorControls;
/*
* Here's where we register the block in JavaScript.
@devuri
devuri / ContactForm.md
Created January 13, 2019 20:35 — forked from patotoma/ContactForm.md
secure php contact form

Secured PHP Contact Form

<?php
  if(isset($_POST['submit'])){
    $name = htmlspecialchars(stripslashes(trim($_POST['name'])));
    $subject = htmlspecialchars(stripslashes(trim($_POST['subject'])));
    $email = htmlspecialchars(stripslashes(trim($_POST['email'])));
    $message = htmlspecialchars(stripslashes(trim($_POST['message'])));
    if(!preg_match("/^[A-Za-z .'-]+$/", $name)){
@devuri
devuri / download-unzip.php
Created December 1, 2018 20:51 — forked from philipp-r/download-unzip.php
Download and unzip file with PHP
<?php
// get latest german WordPress file
$ch = curl_init();
$source = "https://de.wordpress.org/latest-de_DE.zip"; // THE FILE URL
curl_setopt($ch, CURLOPT_URL, $source);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec ($ch);
curl_close ($ch);