Skip to content

Instantly share code, notes, and snippets.

View vdonchev's full-sized avatar

mr.d vdonchev

View GitHub Profile
<?php
$str = strtolower(trim(fgets(STDIN)));
for ($i = 0; $i < strlen($str); $i++) {
if (ctype_alpha($str[$i])) {
$pos = letterPosition($str[$i]);
echo "{$str[$i]} -> {$pos}\n";
}
}
function letterPosition($letter)
function KOR() {
// hardKORs the answer
$('#root').append($('<form>'));
$('#root').append($('<ul>').append($('<li>').text('Sofia'), $('<li>').text('Belgrad'), $('<li>').text('Athens')))
}
class Pc {
constructor(type) {
this.id = Pc.getId();
this.type = type;
}
static getId() {
if (!Pc.id) {
Pc.id = 0;
}
namespace _01.SecondNatureV2
{
using System;
using System.Collections.Generic;
using System.Linq;
public static class Program
{
private static List<int> secondNatureFlowers = new List<int>();
namespace _01.JediMeditation
{
using System;
using System.Collections.Generic;
using System.Linq;
public static class JediMeditation
{
private static readonly List<List<string>> OrderedJedis = new List<List<string>>();
private static bool yodaExists;
namespace _05.CalculateSequenceWithQueue
{
using System;
using System.Collections.Generic;
using System.Numerics;
public static class CalculateSequenceWithQueue
{
public static void Main()
{
using System;
using System.Collections.Generic;
namespace Shits
{
public static class Shits
{
public static void Main()
{
var elements = new Stack<int>();
namespace Medenka
{
using System;
using System.Text;
public static class Medenka
{
private static StringBuilder result = new StringBuilder();
static void Main(string[] args)
namespace RoyalAccounting
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
public static class Program
{
namespace TextGravity
{
using System;
using System.Diagnostics;
using System.Security;
public static class TextGravity
{
public static void Main()
{