Skip to content

Instantly share code, notes, and snippets.

@leonidaa
leonidaa / jobTest.php
Created September 18, 2019 11:30
The following piece of code is not ideal. Explain what the problem is and what you could do to fix it: $a = [ 0 => 10, ]; $i = 0; $a[$i++] = $i;php job test https://surveys.immomigsa.ch/surveys/eyJkYXRhIjoiNTQ1ZTRjYzUtY2U2ZC00MjU1LWJlOGQtYzdiZTc5NWU3MmI1IiwidG9rZW4iOiJlNGNkMDYyYS1jMThjLTRhYWQtOTI0OC01NmJlYThiMDk1NjcifQ==/show/
$a = array(
"0" =>"10",
);
echo '$a[0]=' ,$a[0] ."<br>" ;
echo '$a[1]=' ,$a[1] ."<br>" ;
#
//$a[0]=10
//$a[1]=
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StaticAppStack
{
public class Variable
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StaticAppStack
{
public class Variable
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StaticAppStack
{
public class Variable
{
@leonidaa
leonidaa / StaticVariable.cs
Last active December 13, 2018 21:21
static variable in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StaticApp
{
class Student
using System;
class Student
{
int Nume ;
public void function (string nume)
{
Console.WriteLine(nume);
}
}
@leonidaa
leonidaa / GenerateAlphabeticLetters.py
Created November 28, 2018 21:37
Python test1. You must import only “random” module. No other modules. Here is an incomplete command line script “python3 -c "import random; print()"” which you must complete. Only within parenthesis of “print” command and nowhere else you must type a one-line code, such that this command line script prints a string consisting randomly from the l…
'''
Python test1. You must import only “random” module. No other modules.
Here is an incomplete command line script “python3 -c "import random; print()"” which you must complete.
Only within parenthesis of “print” command and nowhere else you must type a one-line code,
such that this command line script prints a string consisting randomly from the lowercase and uppercase
alphabetic characters (meaning 2*26 characters from “a” to “z” and from “A” to “Z”).
The length of the random string must be also random from 5 to 25 characters.
'''
import random
import string
@leonidaa
leonidaa / GenerateAlphabeticLetters.py
Created November 28, 2018 21:37
Python test1. You must import only “random” module. No other modules. Here is an incomplete command line script “python3 -c "import random; print()"” which you must complete. Only within parenthesis of “print” command and nowhere else you must type a one-line code, such that this command line script prints a string consisting randomly from the l…
'''
Python test1. You must import only “random” module. No other modules.
Here is an incomplete command line script “python3 -c "import random; print()"” which you must complete.
Only within parenthesis of “print” command and nowhere else you must type a one-line code,
such that this command line script prints a string consisting randomly from the lowercase and uppercase
alphabetic characters (meaning 2*26 characters from “a” to “z” and from “A” to “Z”).
The length of the random string must be also random from 5 to 25 characters.
'''
import random
import string
//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.test.espresso;
public final class R {
}