Skip to content

Instantly share code, notes, and snippets.

View Ademking's full-sized avatar
🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
View GitHub Profile
@Ademking
Ademking / media-query.css
Last active July 20, 2018 03:14 — forked from gokulkrishh/media-query.css
🌐 Web : CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@Ademking
Ademking / LoginController.php
Last active July 20, 2018 03:14
❤️ Laravel : (5.5) : Allow login using username or email
// in app/Http/Controllers/Auth/LoginController.php
<?php
/*
* code ...
*/
use AuthenticatesUsers;
protected function credentials(Request $request)
@Ademking
Ademking / readme.md
Last active July 20, 2018 03:13
🌐 WEB : Progress bar while page loading
@Ademking
Ademking / TOP100.md
Last active July 20, 2018 03:13
😃 SQL : get top100 score in table (useful)
SELECT
  SUM(column) AS Top_Scores, user_id, COUNT(rating) as number_of_times
FROM Table
GROUP BY user_id
ORDER BY SUM(column) DESC LIMIT 100
@Ademking
Ademking / NOTE.md
Last active December 25, 2021 05:25
❤️ Laravel : laravel Socialite : https problem - working with localhost
<?php
/// Translate the value ... not the key
/// Example : 'Title' => "your text here"
/// Thanks ♥
return [
'Title' => "Welcome To 10Stars",
'Description' => "Find out your rating, or rate someone you know.",
'Create_Account' => 'Create Account',
'Sign_in' => 'Sign in',
@Ademking
Ademking / Note.md
Last active July 20, 2018 03:11
💙 Ionic : How to serve on Device (with live Reload)

Just to Remember :

ionic cordova run android --device --livereload

if you face any problem, just add Android / ios to Cordova :

cordova platform add android
@Ademking
Ademking / readme.md
Last active July 20, 2018 03:11
💙 Ionic 3 : Force Portrait/Landscape in your app
  1. run :
$ ionic cordova plugin add cordova-plugin-screen-orientation
$ npm install --save @ionic-native/screen-orientation
  1. src/app.module.ts should look like this:
@Ademking
Ademking / Note.md
Last active July 20, 2018 03:11
💙 Ionic 3 : Image not showen in build --Prod apk .. but working in debug mode.. Solution

When addressing images from your .ts files, use ../assets relative path because we have to get out of the build directory first. When addressing the image from your .html files, use assets relative path, because in the final apk file all htmls are merged into one single file called index.html which is placed next to the assets directory and there is no need to go up one level before reaching assets.

/* Blue Theme by AdemKouki */
@import url('https://fonts.googleapis.com/css?family=Cairo');
.theme--day .header-bar {
background-color: #084bf3;
}
.header-avatar, .info , .menu, #share_button{
display: none;