Skip to content

Instantly share code, notes, and snippets.

@jorgesanabria
jorgesanabria / cs
Created May 3, 2021 14:30
parallel IAsyncEnumerable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace PruebaAsyncEnumerable
{
class Program
{
@jorgesanabria
jorgesanabria / .php
Last active October 18, 2019 12:36
asasas
<?php
public function copiarPlan($idPlan, $idEntrenado) {
if (empty($idEntrenado)) $idEntrenado = 'null';
$strQuery = "CALL SP_copiarPlan($idPlan, $idEntrenado)";
$db = $this->getDb();
if ( !$db->query($strQuery) )
$this->setLastError($db->getErrorString());
try {
$idPlanNew = $db->next_record()["idPlan"];
using System;
using System.Collections.Generic;
namespace ListaStruct
{
class Program
{
struct A
{
public int NumeroUno;
@jorgesanabria
jorgesanabria / parcial1.cs
Created May 1, 2018 20:02
ejercicios lógica programación
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PracticasParcial1
{
class Program
{
@jorgesanabria
jorgesanabria / controller-example.html
Last active February 15, 2017 11:16
controller plugin for jquery
<!DOCTYPE html>
<html>
<head>
<title>Plugin Controller</title>
</head>
<body>
<div id="app">
<button data-click="saludar">Hola</button>
<p id="saludo"></p>
<div data-partial="componente">
<!DOCTYPE html>
<html>
<head>
<title>Arbol</title>
</head>
<body>
<div id="arbol">
<ul></ul>
</div>
<script type="text/javascript" src="jquery-3.1.1.js"></script>