Skip to content

Instantly share code, notes, and snippets.

View arielgk's full-sized avatar

Ariel Kuhn arielgk

  • Buenos AIres - Argentina
View GitHub Profile
@arielgk
arielgk / bluewidget.js
Created October 30, 2022 21:30
Blue Widget
const params = args.widgetParameter ? args.widgetParameter.split(",") : [];
const isDarkTheme = params?.[0] === "dark";
const padding = 1;
const widget = new ListWidget();
if (isDarkTheme) {
widget.backgroundColor = new Color("#1C1C1E");
}
widget.setPadding(padding, padding, padding, padding);
@arielgk
arielgk / .env
Created October 14, 2019 22:16
docker compose mysql phpmyadmin with 127.0.0.1 hostname
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME=root
DB_PASSWORD="0000"
@arielgk
arielgk / docker-compose.yml
Created October 14, 2019 02:55 — forked from alifarazz/docker-compose.yml
phpmyadmin and mysql docker-compose file
version: '3.1'
services:
mysql_inst:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
# ports:
# - 8083:3306
volumes:
@arielgk
arielgk / docker-compose.yml
Created October 13, 2019 22:52
docker compose mysql phpmyadmin
version: '2'
services:
db:
image: datajoint/mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_HOST='127.0.0.1'
- MYSQL_ROOT_PASSWORD=simple
@arielgk
arielgk / yt-php
Created September 11, 2019 17:14
php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use stdClass;
use Illuminate\Http\Response;
@arielgk
arielgk / Direct Link of YouTube videos.md
Created August 3, 2019 04:25 — forked from egyjs/Direct Link of YouTube videos.md
PHP API To get Direct Link of YouTube videos
//
// Created by Nick Vance on 12/4/15.
// Modified by Ryan Reece on 11/14/16.
//
import AVKit
import XCDYouTubeKit
import TVMLKit
class YTPlayerViewController: AVPlayerViewController, AVPlayerViewControllerDelegate {
@arielgk
arielgk / vunit.js
Created February 23, 2017 19:15
vunit height
/*!
* @license MIT
* @preserve
*
* vUnit: A vanilla JS alternative for vh and vw CSS units.
* https://github.com/joaocunha/v-unit/
*
* @author João Cunha - joao@joaocunha.net - twitter.com/joaocunha
*/
@arielgk
arielgk / steps.md
Last active February 22, 2017 21:00 — forked from undefinedzain/steps.md
Add Custom Facade on Laravel 5.3
  1. Create a custom class

?>

@arielgk
arielgk / app.js
Last active November 18, 2015 20:07
mqueries.js
$.fn.mqueryjs({
'type': 'screen',
'token': 'only',
'unit': 'px',
'container': 'body',
'zones': {
'small': {
'min': 0,
'max': 320