Skip to content

Instantly share code, notes, and snippets.

web deving around

Cezar Sîrbu sarbull

web deving around
Block or report user

Report or block sarbull

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sarbull / versioned-custom-element.html
Created Apr 16, 2019
HTML Custom Element with version tag
View versioned-custom-element.html
<!DOCTYPE html>
<title>Title of the document</title>
<simple-component-0-0-4 first="Cezar" last="Sirbu"></simple-component-0-0-4>
sarbull /
Last active Dec 8, 2017 — forked from boostit/gist:5a884a68e222ebbe8731296e33fcdf94
Can you spot the errors in the code? Tell us in the comments below.
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)) {
View example.php
function CallAPI($method, $url, $data = false)
$curl = curl_init();
switch ($method)
case "POST":
curl_setopt($curl, CURLOPT_POST, 1);
if ($data)
View pairs.js
function pairs(array, k) {
var hash = {};
var length = array.length;
var result = [];
for(var i = 0; i < length; i++) {
if(hash[array[i]]) {
} else {
hash[array[i]] = 1;
View smsd.conf
# /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
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");
View singleton.js
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();
You can’t perform that action at this time.