Skip to content

Instantly share code, notes, and snippets.

View ragulan77's full-sized avatar

Ragulan Charles Mahendran ragulan77

View GitHub Profile
@ragulan77
ragulan77 / gist:558d3fefbc546c90529a87fb0163450b
Created February 8, 2021 21:23 — forked from madis/gist:4650014
Testing CORS OPTIONS request with curl
curl \
--verbose \
--request OPTIONS \
http://localhost:3001/api/configuration/visitor \
--header 'Origin: http://localhost:9292' \
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \
--header 'Access-Control-Request-Method: GET'
# http://nils-blum-oeste.net/cors-api-with-oauth2-authentication-using-rails-and-angularjs/#.UQJeLkp4ZyE
from ortools.sat.python import cp_model
def getNumeroCase(i, j, nbColonne):
return "x" + str((i*nbColonne + j))
#retourne la colonne i sous forme de tableau
def getColonne(tableau, j):
colonne = [row[j] for row in tableau]
package com.github.leosilvadev.verticle;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import java.util.concurrent.atomic.AtomicLong;
/**
* Created by leonardo on 11/18/17.