Skip to content

Instantly share code, notes, and snippets.

View AvramPop's full-sized avatar

Dani Pop AvramPop

View GitHub Profile
@AvramPop
AvramPop / conf.txt
Created July 31, 2016 18:45
atom config
4be64fb3bcfe7e76f8e1d1545766335bd97e6f5d
@AvramPop
AvramPop / Employee
Last active December 22, 2016 09:55
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.vompi;
/**
*
* @author Admin
#include <string.h>
void eliminareCuvant(char sir[], char cuv[]){
while(strstr(sir, cuv)){
strcpy(strstr(sir, cuv), strstr(sir, cuv) + strlen(cuv));
}
}
int cuvantMaxim (char text[]){
int i,iaux=0,s=0,mx=0;
@AvramPop
AvramPop / API.md
Created February 11, 2017 12:20 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

package sample;
import javafx.application.Application;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
String query = "Mahershalalhashbaz";
String s = new StringBuilder()
.append("https://bibles.org/v2/verses.js?keyword=")
.append(query)
.append("&version=eng-")
.append("KJV")
.toString();
String requestURL = s;
class ClientRepo(Repository):
def __init__(self) -> None:
self.__clientList = []
def hasClientWithId(self, clientId):
for client in self.__clientList:
if client.getId() == clientId:
return True
return False
class ClientFileRepository(ClientRepo):
def __init__(self, fileName) -> None:
super().__init__()
self.__fileName = fileName
self.__file = None
def hasClientWithId(self, clientId):
self.__loadRepo()
hasClientWithId = super().hasClientWithId(clientId)
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h> /* close */