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
import androidx.compose.animation.core.* | |
import androidx.compose.foundation.Canvas | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.material.Text | |
import androidx.compose.runtime.* | |
import androidx.compose.ui.Alignment | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.geometry.Offset | |
import androidx.compose.ui.geometry.Size |
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
Para CPF | |
/^\d{3}\.\d{3}\.\d{3}\-\d{2}$/ | |
Para CNPJ | |
/^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/ | |
Para ambos ao mesmo tempo |
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
jQuery(document).ready(function($) { | |
// Responsive wp_video_shortcode(). | |
$(".wp-video-shortcode") | |
.css("max-width", "100%") | |
.parent("div") | |
.css("width", "auto"); | |
}); |
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 | |
// Outputs all POST parameters to a text file. The file name is the date_time of the report reception | |
$fileName = date('Y-m-d_H-i-s').'.txt'; | |
$file = fopen($fileName,'w') or die('Could not create report file: ' . $fileName); | |
foreach($_POST as $key => $value) { | |
$reportLine = $key." = ".$value."\n"; | |
fwrite($file, $reportLine) or die ('Could not write to report file ' . $reportLine); | |
} | |
fclose($file); | |
?> |
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 namespace content; | |
/** | |
* Category_Add_Field | |
* | |
* redirect() method is called in the header.php file | |
* if the user specifies an external URL in the category field | |
* | |
* @package class for creating dynamic Wordpress metaboxes | |
* @author Andy Walpole | |
* @copyright A Walpole |
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 namespace content; | |
/** | |
* See blog post for details: http://www.suburban-glory.com/blog?page=174 | |
* | |
* Content_Type | |
* | |
* @package class for creating dynamic Wordpress metaboxes | |
* @author Andy Walpole | |
* @copyright AWalpole | |
* @version 2013 |
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
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
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
WEB_WORKER = window.WEB_WORKER || {}; | |
WEB_WORKER = (function($, window) { | |
var _private = { | |
worker: null, | |
file: null, | |
web_worker: function() { | |
return !!window.Worker; | |
}, | |
set_url: function(args) { |
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
MOBILE = window.MOBILE || {}; | |
MOBILE.QUERIES = (function() { | |
'use strict'; | |
// declare document and windows in variables for performace | |
var doc = document, | |
win = window; | |
var _private = { | |
set: function(args) { | |
// use the HTML5 API matchMedia to target phones and tablets |
NewerOlder