Skip to content

Instantly share code, notes, and snippets.

View AkdM's full-sized avatar
👋

Anthony Da Mota AkdM

👋
View GitHub Profile
@AkdM
AkdM / hive.sql
Last active October 20, 2016 17:33
Hive
-- Create names table
CREATE TABLE names(
name STRING,
gender Array<String>,
origin Array<String>,
version DOUBLE
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\073'
COLLECTION ITEMS TERMINATED BY ',';
@AkdM
AkdM / Use config only.md
Created September 21, 2016 11:31
Don't guess my identity! - git

Now you can tell Git not to guess committer identity, but rather to insist that you set user.name and user.email explicitly before it will let you commit:

git config --global user.useconfigonly true

@AkdM
AkdM / description.md
Last active March 17, 2017 14:22
JSONView Theme

#JSONView Theme

Preview

JSONView Theme preview

@AkdM
AkdM / gulpfile.js
Last active November 16, 2020 17:47
Gulp 4 - gulp.watch fix (done callback)
// This tricks prevents the reload-only-once 'new' feature
// of Gulp 4, when using gulp.watch
'use strict';
var gulp = require('gulp'),
sass = require('gulp-sass'),
electron = require('electron-connect').server.create();
// You should also add a 'clean' task to clean the dist folder
@AkdM
AkdM / keybase.md
Last active May 4, 2016 14:03
keybase.md

Keybase proof

I hereby claim:

  • I am AkdM on github.
  • I am akdm (https://keybase.io/akdm) on keybase.
  • I have a public key whose fingerprint is 4DCD 4595 41F1 6357 92BF A44B 0F68 E6CA F810 857D

To claim this, I am signing this object:

@AkdM
AkdM / gist:49ae1d4115246a057526
Created October 24, 2014 14:09
Convert annotation to YAML for Symfony 2
php app/console doctrine:mapping:convert --namespace="MySuper\DuperBundle\Entity\MyEntity" yaml src/MySuper/DuperBundle/Resources/config/doctrine
That command will convert the annotation file into yaml format into src/MySuper/DuperBundle/Resources/config/doctrine as MySuper.DuperBundle.Entity.MyEntity.orm.yml
@AkdM
AkdM / entretien.md
Last active August 29, 2015 14:05 — forked from Neamar/entretien.md

Questions

Ces questions permettent de vous situer vis à vis de la programmation et de l'informatique en général. Il est normal de ne pas tout connaître ;)

Comment s'appelle le système de base de données que l'on utilise avec PHP ?

Réponse :

Que fait la requête SQL suivante :

SELECT Marque, AVG(Prix)
@AkdM
AkdM / BackgroundColors.txt
Last active August 29, 2015 14:03
Beautiful background colors
All with #FFFFFF font color.
Red : #F1443E
Darker red : #C52727
Blue : #40699E
Sky blue : #45B6DA
Green : #47D585
Gold : #E08A1B
Purple : #8D34C9
Dark blue (black) : #20232C
@AkdM
AkdM / Text-Write-Animation.markdown
Last active January 4, 2016 21:18
A Pen by AkdM.