Skip to content

Instantly share code, notes, and snippets.

View gabriel-seb's full-sized avatar

Gabriel M. gabriel-seb

  • SEB - Sistema Educacional Brasileiro
  • Ribeirão Preto
View GitHub Profile
@putyoe
putyoe / placa.php
Last active October 6, 2020 10:59
Source - localização de placas - app [sinesp] em PHP
<?php
// Desenvolvido Para fins EDUCATIVOS.
// Criado em 12/11/2014
// Contato: putyoe@hotmail.com
$placa = '';
$request = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ><soap:Header><dispositivo>GT-S1312L</dispositivo><nomeSO>Android</nomeSO><versaoAplicativo>1.1.1</versaoAplicativo><versaoSO>4.1.4</versaoSO><aplicativo>aplicativo</aplicativo><ip>177.206.169.90</ip><token>5021719229f7ddad0c786542da534ad0375f021f</token><latitude>-3.6770324</latitude><longitude>-38.6791411</longitude></soap:Header><soap:Body><webs:getStatus xmlns:webs="http://soap.ws.placa.service.sinesp.serpro.gov.br/"><placa>'.$placa.'</placa></webs:getStatus></soap:Body></soap:Envelope>';
$header = array(
"Content-type: application/x-www-form-urlencoded; charset=UTF-8",
@bradcrawford
bradcrawford / feedly_export_saved_for_later
Last active February 26, 2024 07:07
Simple script that exports a users "Saved For Later" list out of Feedly as a JSON string
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
//
// This was intended for use in the Google Chrome's "Inspector" tool so your
// mileage may vary if used in other contexts.
//
// Format of JSON is as follows:
// [
// {
// title: "Title",
@gmuraoka
gmuraoka / areautil
Created August 8, 2013 02:22
Código para obter a área útil da tela.
//DEPENDE DE jQuery, INSERIR ANTES
var width = $(this).width();
var height = $(this).height();
alert("Largura: " +width +"px X Altura:" +height +"px");
@gmuraoka
gmuraoka / header
Last active December 20, 2015 19:09
Basic Header Code
<base href="URLBASE" /><!-- Define a URL base -->
<!-- HTTP 1.1. Desativa o cache do navegador -->
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<!-- HTTP 1.0. -->
<meta http-equiv="Pragma" content="no-cache" />
<!-- Proxies. -->
<meta http-equiv="Expires" content="0" />
@zenorocha
zenorocha / multiple-3rd-party-widgets.js
Last active March 11, 2026 14:24
Loading multiple 3rd party widgets asynchronously
(function() {
var script,
scripts = document.getElementsByTagName('script')[0];
function load(url) {
script = document.createElement('script');
script.async = true;
script.src = url;
scripts.parentNode.insertBefore(script, scripts);
@matiaskorhonen
matiaskorhonen / gist:3013808
Created June 28, 2012 20:44
Chrome for iOS user-agents

Chrome for iOS user-agents

iPhone

Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en-gb)
AppleWebKit/534.46.0 (KHTML, like Gecko)
CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3