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
const REGEX = /^[\u2D30-\u2D7F\\s]+$/ | |
// Examples | |
console.log(REGEX.test("ⵡⴻⵀⵔⴰⵏ")); // True | |
console.log(REGEX.test("Oran")); // False |
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 React, { useEffect } from 'react'; | |
import PropTypes from 'prop-types'; | |
import ReactQuill from 'react-quill'; | |
import 'react-quill/dist/quill.snow.css'; | |
import { modules, formats } from './config'; | |
function RichEditor({ store, attribute, placeholder }) { | |
let quillRef = null; | |
let reactQuillRef = null; |
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
from django.utils.translation import gettext_lazy as _ | |
WILAYAS = [ | |
( 0, 'International'), | |
( 1, '01- {}'.format(_('Adrar')) ), | |
( 2, '02- {}'.format(_('Chlef')) ), | |
( 3, '03- {}'.format(_('Laghouat')) ), | |
( 4, '04- {}'.format(_('Oum El Bouaghi')) ), | |
( 5, '05- {}'.format(_('Batna')) ), | |
( 6, '06- {}'.format(_('Béjaïa')) ), |
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
#!/usr/bin/env python | |
# # -*- coding: utf-8 -*- | |
from pyknow import * | |
class Personne(Fact): | |
"""Info about the patient""" | |
pass | |
class InreferenceEngine(KnowledgeEngine): |
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> | |
<meta charset="utf-8"> | |
<title>Hello Slider</title> | |
</head> | |
<body> |
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
$(document).ready(function(){ | |
var chart; | |
var socket = io.connect('/'); | |
socket.on('chart-change', function(str){ | |
var newsObject = JSON.parse(str); | |
myApplication.$data.currencies = newsObject.list.split('%%'); | |
if (newsObject.removedItem.length === 3) { | |
chart.load({ | |
columns: myApplication.$data.cols, | |
unload: [newsObject.removedItem], |
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 <stdio.h> | |
int _______________________(int _____, int ___________){ | |
int ___________________________________; | |
___________________________________ = _____ + ___________; | |
return ___________________________________; | |
} | |
int main() { | |
float _ = .555; | |
int __; |
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 x1 >= 0; | |
var x2 >= 0; | |
maximize fct: 6*x1 + 4*x2; | |
subject to test1: 3*x1 + 9*x2 <=81; | |
subject to test2: 4 * x1 + 5 * x2 <= 55; | |
subject to test3: 2 * x1 + x2 <= 20; |
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 <stdio.h> | |
%} | |
chiffre [0-9] | |
lettre [a-z]|[A-Z] | |
%% | |
{lettre}({chiffre}|{lettre})* {printf("Identifiant reconnu: %s de longuer %d\n", yytext, yyleng);} | |
({chiffre})+ {printf("Nombre reconnu:");ECHO;printf("\n");} | |
[^a-z]|[^A-Z]|[^0-9] | |
%% |
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 fs = require("fs"); | |
//Readfile | |
fs.readFile(process.argv[2], (err, content) =>{ | |
if (err) { | |
throw err; | |
} | |
else{ | |
var buffer = content.toString(); | |
var bufferArray = buffer.split('\n'); | |
console.log((bufferArray.length-1)); |
NewerOlder