Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
public class Codec { | |
HashMap<String, String> mapping = new HashMap<>(); | |
String letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | |
String baseUrl = "http://tinyurl.com/"; | |
int lengthSuffix = 8; | |
public String encode(String longUrl) { | |
String res; | |
do { | |
StringBuilder sb = new StringBuilder(lengthSuffix); | |
for (int i = 0; i < lengthSuffix; i++) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import rdflib | |
import json | |
def owl_to_json(owl_file): | |
g = rdflib.Graph() | |
result = g.parse(owl_file, format="application/rdf+xml") | |
json_str = json.dumps(result.serialize(format='json-ld')) | |
return json.loads(json_str) | |
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
#parallax | |
.layer(data-depth="0.6") | |
.some-space | |
h1 TARIK 7AZEQ | |
.layer(data-depth="0.4") | |
#particles-js | |
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 RomanNumbersIntoInteger { | |
public int romanToInt(String s) { | |
Map<Character,Integer> romanMap = new HashMap<>(); | |
romanMap.put('I',1); | |
romanMap.put('V',5); | |
romanMap.put('X',10); | |
romanMap.put('L',50); | |
romanMap.put('C',100); | |
romanMap.put('D',500); | |
romanMap.put('M',1000); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
sudo apt-get update | |
sudo apt-get install default-jre | |
sudo apt-get install mysql-server | |
sudo service mysql start | |
mkdir joget | |
cd joget | |
wget -O joget.tar.gz http://sourceforge.net/projects/jogetworkflow/files/joget-linux-7.0.12.tar.gz/download | |
tar xvfz joget.tar.gz -C | |
cd joget-linux-7.0.12 | |
./tomcat8.sh start |
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
#include "ast.h" | |
#include "tablesymb.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
AST generation_rand_expression(int maxd, methode m){ | |
if (maxd==0 || (m=grow && rand()<0.5)) { | |
int choix = (int*)(rand()* 4)+1; | |
switch (choix){ |