Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home #StayAtHome

Anthony Da Mota AkdM

🏠
Working from home #StayAtHome
View GitHub Profile
@AkdM
AkdM / Key Binding - User.json
Created May 30, 2013
My (old) Sublime Text Configuration
View Key Binding - User.json
[
{ "keys": ["super+alt+7"], "command": "encode_html_entities" },
{ "keys": ["shift+ctrl+u"], "command": "title_case" },
{ "keys": ["super+enter"], "command": "insert", "args": {"characters": "<br>\n"} },
{ "keys": ["super+alt+l"], "command": "insert_snippet", "args": {"contents": "<li>${0:$SELECTION}</li>" } },
{ "keys": ["super+alt+b"], "command": "insert_snippet", "args": {"contents": "<b>${0:$SELECTION}</b>" } },
{ "keys": ["super+alt+i"], "command": "insert_snippet", "args": {"contents": "<i>${0:$SELECTION}</i>" } },
{ "keys": ["super+alt+n"], "command": "insert_snippet", "args": {"contents": "<span>${0:$SELECTION}</span>" } },
{ "keys": ["super+alt+down"], "command": "insert_snippet", "args": {"contents": "<sub>${0:$SELECTION}</sub>" } },
@AkdM
AkdM / CSSFrameworks.md
Last active Aug 9, 2018
CSS frameworks.md
View CSSFrameworks.md
@AkdM
AkdM / myfile.html
Last active Jul 21, 2020
Dynamically populate dropdowns with JSON and jQuery
View myfile.html
<label>Country:</label>
<select id="country" name="country">
<option value="000">-Select Country-</option>
</select>
<br />
<label>State:</label>
<select id="state" name="state">
<option value="000">-Select State-</option>
View Text-Write-Animation.markdown
@AkdM
AkdM / BackgroundColors.txt
Last active Aug 29, 2015
Beautiful background colors
View BackgroundColors.txt
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
View 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 / gist:49ae1d4115246a057526
Created Oct 24, 2014
Convert annotation to YAML for Symfony 2
View gist:49ae1d4115246a057526
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 / keybase.md
Last active May 4, 2016
keybase.md
View 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 / gulpfile.js
Last active Nov 16, 2020
Gulp 4 - gulp.watch fix (done callback)
View gulpfile.js
// 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