Skip to content

Instantly share code, notes, and snippets.

View kkrico's full-sized avatar

Daniel kkrico

  • Brasilia, Distrito Federal
View GitHub Profile
@kkrico
kkrico / Circle.cs
Created November 19, 2015 23:16
Exercicio de OO pedido em sala dia 19/11/2015. - Daniel Ferreira Ramos <ramos.danielferreira@gmail.com>. Também disponivel em http://1drv.ms/1I2fozC
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FormacaoTalentos.Exercise
{
public class Circle : ResizableCircle, IGeometricObject
{
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.kkrico.controller;
import com.kkrico.model.PessoaFisica;
import com.kkrico.model.PessoaJuridica;
import java.io.Serializable;
jQuery(function(){
var ds_loaded = false, top = jQuery("h1:contains(Comments)").offset().top;
function check(){
if ( !ds_loaded && jQuery(window).scrollTop() + jQuery(window).height() > top ) {
jQuery.getScript("http://jquery.disqus.com/disqus.js?v=2.0&slug=add&pname=wordpress&pver=2.12");
ds_loaded = true;
}
}
// ==UserScript==
// @name Trello Filter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add filter to trello
// @author kkrico (Daniel Ramos)
// @match https://trello.com/*
// @grant none
// ==/UserScript==
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:4.0">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
@kkrico
kkrico / JS-LINQ.js
Created November 21, 2016 11:30 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }
@kkrico
kkrico / cifracesar.c
Last active December 2, 2016 20:04
Versão final. Corrigido o bug ao gerar criptografia
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#define ASCIIDIFERENCA 65
int modulo(int a, int b)
{
int r = a % b;
return r < 0 ? r + b : r;
int main(void)
{
char* source = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";
char* criptografado = criptografar(source, 3);
char* descriptografado = descriptografar(criptografado, 3);
printf("Original : %s", source);
printf("\n");
printf("Criptogr : %s", criptografado);
printf("\n");
@using Autorizacoes.Internet
@{
ViewBag.Title = "Autorizacao " + ViewBag.Guia;
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="modal fade" id="myModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<%
Class Demo
Private p_name
Private p_sobrenome
Public Property Get Name()
Name = p_name
End Property