This file contains 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
{ | |
"editor.acceptSuggestionOnCommitCharacter": false, | |
"editor.autoClosingBrackets": "never", | |
"editor.autoIndent": "keep", | |
"editor.detectIndentation": false, | |
"editor.insertSpaces": true, | |
"editor.minimap.enabled": true, | |
"editor.renderWhitespace":"all", | |
"editor.rulers": [ | |
80, |
This file contains 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> | |
<head> | |
<title>Title of the document</title> | |
</head> | |
<body> | |
<simple-component-0-0-4 first="Cezar" last="Sirbu"></simple-component-0-0-4> | |
<script> |
This file contains 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
class BoostIT implements Angajeaza { | |
public static String XP_LEVEL = "Senior"; | |
public Set<Senior> seniors = new HashSet<Senior>; | |
public Set Cautam(List<Developer> devs) { | |
for (Developer d : devs) { | |
if (d.stieJava().equals(XP_LEVEL)) { | |
seniors.add(d); | |
} | |
} |
This file contains 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
function CallAPI($method, $url, $data = false) | |
{ | |
$curl = curl_init(); | |
switch ($method) | |
{ | |
case "POST": | |
curl_setopt($curl, CURLOPT_POST, 1); | |
if ($data) |
This file contains 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
function pairs(array, k) { | |
var hash = {}; | |
var length = array.length; | |
var result = []; | |
for(var i = 0; i < length; i++) { | |
if(hash[array[i]]) { | |
hash[array[i]]++; | |
} else { | |
hash[array[i]] = 1; |
This file contains 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
# | |
# /etc/smsd.conf | |
# | |
# Description: Main configuration file for the smsd | |
# | |
devices = GSM1 | |
outgoing = /var/spool/sms/outgoing | |
checked = /var/spool/sms/checked | |
incoming = /var/spool/sms/incoming |
This file contains 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
package learning; | |
import java.util.*; | |
public class Main { | |
public static void main(String [] args) { | |
System.out.println("Hello world!"); | |
List<String> myList = Arrays.asList("a1", "a2", "c3", "c5", "cezar", "ana", "constanta"); |
This file contains 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 singleton = (function () { | |
var instance; | |
function init() { | |
function privateMethod(){ | |
console.log( "I am private" ); | |
} | |
var privateVariable = "I am a private variable"; | |
var privateRandomNumber = Math.random(); |