Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Marcos Pereira mvnp

🏠
Working from home
Block or report user

Report or block mvnp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Primeiro código Dart - Flutter
/**
*
* https://dartpad.dartlang.org/
*
*/
class Pessoa
{
String nome;
int idade;
double altura;
View How to?
$(this).closest('div.escopo-pergunta').find('img').attr({
src: 'https://sbcdados.com.br/painel/img/unchecked.png',
});
$(this).attr({
src: 'https://sbcdados.com.br/painel/img/checked.png',
});
View Array javascript
arr = [
[48, 683, 18110],
[48, 683, 18111],
[48, 683, 18109],
[48, 683, 18108],
[48, 683, 18113],
[48, 684, 18114],
[48, 685, 18115],
]
View Resetar keys no array do Javascript
let idpergunta_ = ""
let compactArray = []
for(let i = 0; i < arr.length; i++)
{
let idpergunta_ = arr[i].idpergunta;
if(idpergunta_ != undefined && idpergunta_ != null)
{
if(idpergunta_ == idpergunta)
{
console.log("Achei")
View Classe para url's amigáveis
<?php
setlocale(LC_ALL, 'pt_BR.UTF8');
function toAscii($str, $options = array()) {
// Make sure string is in UTF-8 and strip invalid UTF-8 characters
$str = mb_convert_encoding((string)$str, 'UTF-8', mb_list_encodings());
$defaults = array(
@mvnp
mvnp / gist:3703683
Created Sep 12, 2012
Trabalhando em um projeto que eu fui incluído como colaborador
View gist:3703683

#Trabalhando em um projeto que eu fui incluído como colaborador

Logo que eu for incluído no projeto como colaborador ele irá aparecer em minha lista de repositórios.

Note que seu nome irá compor o nome de quem me incluiu. e.g.

michaeljackson/moonwalk

Clone o projeto em seu computador.

View Code
$(document).on("change", "#VERACEL_CAD_EMP_ID", function(){
$('#VERACEL_CAD_PESQUISADOR_ID option').each(function(index, val) {
console.log($(this).val());
});
});
$("#VERACEL_CAD_EMP_ID").trigger("change");
View Script.js
This file has been truncated, but you can view the full file.
function setCookie(a, b, c) {
var d = new Date;
d.setTime(d.getTime() + 24 * c * 60 * 60 * 1e3);
var e = "expires=" + d.toUTCString();
document.cookie = a + "=" + b + ";" + e + ";path=/"
}
function getCookie(a) {
for (var b = a + "=", c = document.cookie.split(";"), d = 0; d < c.length; d++) {
View gist:c84ae606db8be74dc5924a1bfcc5b22a
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<table border="1" width="100%">
<thead>
<tr>
<th>Name</th>
View index
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology
*
You can’t perform that action at this time.