Skip to content

Instantly share code, notes, and snippets.

@jorovipe97
jorovipe97 / DeseoRandom.js
Last active August 14, 2016 04:38
Para usar en la pagina /about del blog gb10
Random.DeseosInfinitos();
using System;
// una clase es una carpeta
public class Humanos
{
// mi carpeta contine elementos...
// que pueden ser...
// PROPIEDADES que me sirven para definir
CHIP Or {
IN a, b;
OUT out;
PARTS:
// Put your code here:
Nand(a=a, b=a, out=nanda);
Nand(a=b, b=b, out=nandb);
Nand(a=nanda, b=nandb, out=out);
}
function sFact(num)
{
var rval=1;
for (var i = 2; i <= num; i++)
rval = rval * i;
return rval;
}
function poisson(k, lambda) {
return (Math.exp(-1*lambda) * Math.pow(lambda, k))/sFact(k);
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
static String timeConversion(String s) {
// Complete this function
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
static String timeConversion(String s) {
// Complete this function
/*
* 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 javaapplication1;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class HelloWorld{
static int bonApetit(int n, int k, int b, int[] arr) {
int totalCost = 0;
int bactual = 0;
var a1=2;
var a2=4;
function sum(a, b) {
var res=0;
var sum = 0;
var i = 0;
while (i < b) {
@jorovipe97
jorovipe97 / Python SimpleHTTPServer with SSL
Last active September 30, 2017 23:06 — forked from rozifus/Python SimpleHTTPServer with SSL
Python 3.x https server with SSL
# useful for running ssl server on localhost
# which in turn is useful for working with WebSocket Secure (wss)
# copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/