Skip to content

Instantly share code, notes, and snippets.

View EmrysMyrddin's full-sized avatar

Valentin Cocaud EmrysMyrddin

  • Nantes France
  • 11:14 (UTC +02:00)
View GitHub Profile
for(TestStep step : listOfTestStep)
{
WsdlTestStep stepWithConfig;
SamplerTestStep stepWithRequest;
if(setp instanceOf WsdlTestStep) stepWithConfig = (WsdlTestStep) step
if(setp instanceOf SampleTestStep) stepWithRequest = (SampleTestStep) step
//Tu fait des trucs ma bite
if(stepWithConfig) {
//Tu fait des trucs mon zboub mais que si c'est du WsdlTestStep
@EmrysMyrddin
EmrysMyrddin / availablePlugins.js
Last active June 13, 2017 13:42
Available plugins liste format
{
plugins: [
{
"name": "Plugin 1",
"description": "A short description for documentation purpose",
"elementName": "plugin-1",
"icon": "picture_in_picture_alt",
"props": [
{
"name": "prop1",
@EmrysMyrddin
EmrysMyrddin / dashboard.json
Last active June 23, 2017 09:31
Dashboard layout format
{
"name": "Dahsboard 1",
"description": "Some description",
"rows": 20,
"cols": 20,
"styles" : {
"primary-color": "#FFF",
"secondary-color": "#F00",
"background-color": "#000",
"font-family": "Roboto"
{
"explorer.openEditors.visible": 0,
"editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
"window.zoomLevel": 1,
"workbench.colorTheme": "Oceanic Next Italic",
"editor.fontSize": 12,
"javascript.validate.enable": false,
"flow.useNPMPackagedFlow": true,
"editor.renderIndentGuides": false,
"files.autoSave": "afterDelay",
Query {
login(suername: String!, password: String!): UserAuthentication
}
type UserAuthentication {
token: String!
user: user!
}
{
login(username: "Valentin", password: "MotDePasseSecret") {
token
user {
id
username
}
}
}
{
"token": "mon super token",
"user": {
"id": 1234
}
}
const DnD = () => {
const [draging, setDraging] = useState(false)
const handleDragStart = useCallback(() => {
setDraging(true)
// [Record starting point]
}, [setDraging])
const handleDragMove = useCallback(() => {
// [Calc the current position]
const useDnD = ({ onStart, onMove, onComplete }) => {
const [draging, setDraging] = useState(false)
const handleDragStart = useCallback(() => {
setDraging(true)
// [Record starting point]
onStart ?? onStart()
}, [setDraging, onStart])
const handleDragMove = useCallback(() => {