Skip to content

Instantly share code, notes, and snippets.

View Jimimimi's full-sized avatar

Dimitris Messinis Jimimimi

  • Strapi
  • Occitanie, France
View GitHub Profile
@Jimimimi
Jimimimi / ads.js
Created July 9, 2019 15:54
ads.js
var ad = {};
@Jimimimi
Jimimimi / model-data.json
Last active October 13, 2017 06:53
Carpo response example
{
"datasets": [
{
"caption": "Dataset 1",
"chart": {
"type": "bar",
"subtype": "filled",
"color": "#d73a49"
},
"values": [
@Jimimimi
Jimimimi / .env.example
Created July 25, 2017 13:05 — forked from iolson/.env.example
GitLab CI Laravel 5.1.*
DB_HOST=mysql
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
@Jimimimi
Jimimimi / .gitlab-ci.yml
Created July 25, 2017 08:20 — forked from aleixfabra/.gitlab-ci.yml
GitLab CI Laravel 5
image: php:5.6
services:
- mysql:latest
variables:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: test
before_script:
@Jimimimi
Jimimimi / translate-hackair.js
Created May 11, 2017 11:21
hackair translation flattener
// str = en.json
var tr = [];
for (var key in str){
for (var key2 in str[key]) {
if (typeof(str[key][key2]) == "object"){
for (var key3 in str[key][key2]) {
var o = {
key: key + '.' + key2 + '.' + key3,
value: str[key][key2][key3]
@Jimimimi
Jimimimi / index.html
Last active March 23, 2017 10:32
scrape
<html>
<head>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
</head>
<body>
<input type="url" id="url" placeholder="Enter a product URL">
<button id="btnGo">Auto Follow</button>
<script>
$('#btnGo').click(autoFollow);
@Jimimimi
Jimimimi / LICENSE.md
Last active January 2, 2017 14:03 — forked from cbjuan/LICENSE.md
Grouped Bar Chart with Legend and Tooltips

The MIT License (MIT)

Copyright (c) 2015 Juan Cruz-Benito. http://juancb.es

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR I

# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
$(function() { //shorthand document.ready function
$('form').on('submit', function(e) { //use on if jQuery 1.7+
e.preventDefault(); //prevent form from submitting
var data = $("form :input").serializeArray();
console.log(data); //use the console for debugging, F12 in Chrome, not alerts
});
});
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
server_name unipi.uninotes.gr;
location / {