Skip to content

Instantly share code, notes, and snippets.

View sdieunidou's full-sized avatar
🏠
Working from home

Seb sdieunidou

🏠
Working from home
View GitHub Profile
@sdieunidou
sdieunidou / hytale-api.js
Last active April 29, 2019 15:30
hytale-api.js
var HytaleApi = require('hytale-api-sdk');
var api = new HytaleApi.ArticlesApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
console.log(data);
}
@sdieunidou
sdieunidou / hytale-api.java
Last active April 29, 2019 15:33
hytale-api.java
public class ArticlesApiExample {
public static void main(String[] args) {
ArticlesApi apiInstance = new ArticlesApi();
try {
// get latest articles
List<Article> result = apiInstance.getArticles();
System.out.println(result);
// show article
@sdieunidou
sdieunidou / hytale-api.php
Last active May 1, 2019 18:02
hytale-api.php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ArticlesApi();
try {
// get latest articles
$result = $apiInstance->getArticles();
print_r($result);
@sdieunidou
sdieunidou / gist:7f4502ed2d8810e7a39317418c9adefb
Created August 9, 2018 13:30 — forked from httpdss/gist:948386
Mysql general log parser
#!/usr/bin/perl
use strict;
use Data::Dumper;
use Getopt::Long;
# author: Gavin Towey, 2008 gtowey@gmail.com
# todo, add "follow thread" capability
# so we can give a process name or thread id & see
# all activity in sequence for each thread
@sdieunidou
sdieunidou / symfony2-pull-requests.md
Created April 12, 2017 08:05 — forked from immutef/symfony2-pull-requests.md
HowTo: clean GitHub pull requests for Symfony2
  1. Fork Fabiens repository: http://github.com/fabpot/symfony.git

  2. Clone your fork and install/update vendors (I use my personal fork for now):

    git clone git@github.com:pminnieur/symfony.git symfony

    cd symfony && sh install_vendors.sh && sh update_vendors.sh

    phpunit

  3. Integrate Fabiens repository into your local clone:

@sdieunidou
sdieunidou / Api.md
Last active September 7, 2018 11:22
Api.md

Initialiser une API Rest, avec la ressource /api/tweets. Les méthodes suivantes seront implémentés :

  • cget(): retourne la liste de tous les tweets
  • get($id): retourne un tweet par son ID
  • post(): création d'un Tweet