Skip to content

Instantly share code, notes, and snippets.

🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
Block or report user

Report or block Ademking

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Ademking
Ademking / media-query.css
Last active Jul 20, 2018 — forked from gokulkrishh/media-query.css
🌐 Web : CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@Ademking
Ademking / LoginController.php
Last active Jul 20, 2018
❤️ Laravel : (5.5) : Allow login using username or email
View LoginController.php
// in app/Http/Controllers/Auth/LoginController.php
<?php
/*
* code ...
*/
use AuthenticatesUsers;
protected function credentials(Request $request)
@Ademking
Ademking / readme.md
Last active Jul 20, 2018
🌐 WEB : Progress bar while page loading
View readme.md
@Ademking
Ademking / TOP100.md
Last active Jul 20, 2018
😃 SQL : get top100 score in table (useful)
View TOP100.md
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 Jul 20, 2018
❤️ Laravel : laravel Socialite : https problem - working with localhost
View NOTE.md
View Translate.php
<?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 Jul 20, 2018
💙 Ionic : How to serve on Device (with live Reload)
View Note.md

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 Jul 20, 2018
💙 Ionic 3 : Force Portrait/Landscape in your app
View readme.md
  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 Jul 20, 2018
💙 Ionic 3 : Image not showen in build --Prod apk .. but working in debug mode.. Solution
View Note.md

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.

View blue.css
/* 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;
You can’t perform that action at this time.