Skip to content

Instantly share code, notes, and snippets.

View portal7's full-sized avatar

Alfredo Severo portal7

  • Buenos Aires, Argentina
View GitHub Profile
@portal7
portal7 / StringCipher.cs
Created October 31, 2019 15:00
Encriptar / Desencriptar C#
using System;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using System.Linq;
namespace EncryptStringSample
{
public static class StringCipher
{
@portal7
portal7 / firstcharacter.cs
Created January 27, 2021 03:14
First Character of a sentence
using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
{
String name = "University of Warwick";
printInitials(name);
@portal7
portal7 / enhanced-nav-menu-editor.tsx
Created October 16, 2024 21:26
Editor Menu Avanzado
'use client'
import { useState } from 'react'
import { Check, X, ChevronDown, Loader2 } from 'lucide-react'
import { cn } from '@/lib/utils'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Label } from '@/components/ui/label'
import { Textarea } from '@/components/ui/textarea'
import {
@portal7
portal7 / filepy.py
Last active November 26, 2024 12:43
enumerate functions
nuevo
import os
import re
import pandas as pd
def analyze_cs_files(directory):
results = []
# Regex patterns
controller_pattern = r"public class (\w+Controller)"