Skip to content

Instantly share code, notes, and snippets.

View jaderdev's full-sized avatar
🛼
Try a new thing

Jaderson Nascimento jaderdev

🛼
Try a new thing
View GitHub Profile
@jaderdev
jaderdev / comoNaoDeixarNoVaucoNoWhatsapp.js
Created October 21, 2017 01:09 — forked from callmeloureiro/comoNaoDeixarNoVaucoNoWhatsapp.js
Como não deixar no vácuo no whatsapp
/*
Hoje não deixaremos mais ninguém no vácuo no whatsapp
Para utilizar:
- Abra o web.whatsapp.com;
- Abra o console e cole o código que está no gist;
- Aguarde e verá uma mensagem sendo enviada a cada momento que alguém te enviar alguma mensagem.
Confira também como ser chato no whatsapp: https://gist.github.com/mathloureiro/4c74d60f051ed59650cc76d1da0d32da
describe("Mocking Ext.Ajax.request with Jasmine", function () {
var responseText,
mockResponse = {
responseText: '{"success":true,"count":1,"data":[{name: "id", "type": "int", "maxLenght": "11", "isPrimaryKey": true}]}'
};
it("should mock the Ext.Ajax.request response manipulating the spy mostRecentCall.args", function () {
spyOn(Ext.Ajax, 'request');
@jaderdev
jaderdev / git.md
Created April 20, 2017 13:34 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@jaderdev
jaderdev / combo_dinamico.html
Created March 23, 2017 16:49 — forked from ografael/combo_dinamico.html
Carregar combo com JQuery - Cidades e Estados
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.getJSON('estados_cidades.json', function (data) {
@jaderdev
jaderdev / README.md
Created March 9, 2017 14:19 — forked from hofmannsven/README.md
My simply Git Cheatsheet