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 / readme.md
Last active July 25, 2018 22:39
🍀 GitHub : Change Repositorie Language

1. Create a new file in the root called ".gitattributes"

2. Write this code and change the 2nd line with the extension of your language (in this example i use .js) :

* linguist-vendored
*.js linguist-vendored=false

3. Tadaaa .. That's all

@Ademking
Ademking / readme.md
Last active July 30, 2018 02:59
⚛️ React Native : Getting Started

To Create a new project :

react-native init AdemApp

Important ! i had a problem with the lastest version of React Native, so you must do this :

  1. First delete node_modules folder

  2. In package.json change react-native version "react-native": "0.55.2", and babel "babel-preset-react-native": "4",

@Ademking
Ademking / readme.md
Last active August 2, 2018 01:28
Download + Install Chrome in 1 line (Great for new VPS/RDP)
  1. Open Powershell

  2. Paste (make sure to edit the username / path to your liking.)

(new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'C:\Users\Administrator\Desktop\chrome.exe');
@Ademking
Ademking / Spreadsheet.php
Created August 21, 2018 01:47
PHP: Read and Write in Google Sheets
<?php
require __DIR__ . '/vendor/autoload.php';
function getClient()
{
$client = new Google_Client();
$client->setApplicationName('Google Sheets API PHP Quickstart');
$client->setScopes(Google_Service_Sheets::SPREADSHEETS);
@Ademking
Ademking / readme.md
Last active September 13, 2018 22:31
💙 Ionic 3: ANDROID_HOME error (UnhandledPromiseRejectionWarning: CordovaError: Failed to find 'ANDROID_HOME' ...)

For Windows :

in CMD run this :

set ANDROID_HOME=C:\Users\Adem\AppData\Local\Android\sdk
( replace "Adem" with your username )
@Ademking
Ademking / readme.md
Last active September 20, 2018 00:49
💙 Ionic 3 : Keyboard pushes elements in page (Solution)
@Ademking
Ademking / readme.md
Last active September 20, 2018 03:32
💙 Ionic 3 : Iframe reloads after showing Keyboard (Solution)
@Ademking
Ademking / readme.md
Created September 20, 2018 04:52
💙 Ionic 3 : listening to Keyboard events (show, hide..)
  1. app.module.ts :
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';

import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
@Ademking
Ademking / app.js
Created September 20, 2018 12:52
LinkedIn Auto Liker
/** By Adem Kouki
/** Facebook : https://facebook.com/Ademkouki.Officiel
/** GitHub : https://github.com/Ademking
/**
/** LinkedIn Auto Liker - This tool will help you to increase your Linkedin Popularity ...
/**
*/
(function() {
console.log('By Adem Kouki : https://facebook.com/Ademkouki.Officiel');
let index = 0;
@Ademking
Ademking / University-Chatroom-theme.css
Last active September 21, 2018 12:04
University chatroom theme
/* University Theme by AdemKouki */
@import url('https://fonts.googleapis.com/css?family=Tajawal');
.theme--day .header-bar {
background-color: #ffffff;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' %3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff4400'/%3E%3Cstop offset='1' stop-color='%23bd0000'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpattern id='b' width='24' height='24' patternUnits='userSpaceOnUse'%3E%3Ccircle fill='%23ffffff' cx='12' cy='12' r='12'/%3E%3C/pattern%3E%3Crect width='100%25' height='100%25' fill='url(%23a)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23b)' fill-opacity='0.1'/%3E%3C/svg%3E");
background-attachment: fixed;