This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name SE Chat | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Moving Feed new items to the bottom right corner | |
| // @author You | |
| // @match https://chat.stackexchange.com/rooms/30872/stack-overflow-en-espanol | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Linq; | |
| using System.Text; | |
| public static class Kata | |
| { | |
| public static string AlphabetPosition(string text) | |
| { | |
| //First define the groups: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| public static class Kata | |
| { | |
| public static IEnumerable<T> UniqueInOrder<T>(IEnumerable<T> iterable) | |
| { | |
| List<T> result = new List<T>(); | |
| T pre_item = default(T); | |
| foreach (T item in iterable) { | |
| if(!item.Equals(pre_item)){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Accumul.Accum("abcd"); // "A-Bb-Ccc-Dddd" | |
| //Accumul.Accum("RqaEzty"); // "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy" | |
| //Accumul.Accum("cwAt"); // "C-Ww-Aaa-Tttt" | |
| public static String Accum(string s) | |
| { | |
| var longitud = s.Length; | |
| Console.WriteLine(longitud); | |
| var arreglo = s.ToCharArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| Console.WriteLine("Hello World"); | |
| var result = GetNumbers("1-4,3,5-10,12"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * A PTRACE_POKEDATA variant of CVE-2016-5195 | |
| * should work on RHEL 5 & 6 | |
| * | |
| * (un)comment correct payload (x86 or x64)! | |
| * $ gcc -pthread c0w.c -o c0w | |
| * $ ./c0w | |
| * DirtyCow root privilege escalation | |
| * Backing up /usr/bin/passwd.. to /tmp/bak | |
| * mmap fa65a000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void btnEnviar_Click(object sender, EventArgs e){ | |
| // Aqui manejamos lo que va a pasar cuando el botón fue clickeado. | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <h2>JavaScript Array Sort</h2> | |
| <p>Click the buttons to sort car objects on type.</p> | |
| <button onclick="myFunction()">Sort</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var contieneValor = ($("#IdDelCampo").val().length > 0); | |
| // si el valor es nulo, dará cero, por lo que será falso | |
| //aquí lo mandamos a verdadero o hacemos un contieneValor == false que viene a ser lo mismo. | |
| if(!contieneValor){ | |
| resaltarCampo(); | |
| } | |
| function resaltarCampo() { | |
| $("#IdDelCampo").css("border-color", "red"); | |
| setTimeout(function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE USER [NombreDeUsuario] | |
| FOR LOGIN [IIS APPPOOL\DefaultAppPool] | |
| GO | |
| EXEC sp_addrolemember 'db_owner', 'NombreDeUsuario' | |
| GO |