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 / app.js
Created Nov 4, 2019
Remove duplicates from Array
View app.js
// Helper function - remove duplicates from Array
function uniq(a) {
var seen = {};
return a.filter(function(item) {
return seen.hasOwnProperty(item) ? false : (seen[item] = true);
});
}
@Ademking
Ademking / README.md
Last active Oct 23, 2019
Windows 10 - Remove Garbage apps
View README.md

(UPDATE): Remove Bloatware using "Windows10Debloater" [with GUI]

  1. Run Powershell (as admin)

  2. Copy/paste

 iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat')) 
View README.md
function create_UUID() {
		var dt = new Date().getTime();
		var uuid = 'xxyxxxxxxyxxxxxyxxxx'.replace(/[xy]/g, function(c) {
			var r = (dt + Math.random() * 16) % 16 | 0;
			dt = Math.floor(dt / 16);
			return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16);
		});
		return uuid;
	}
@Ademking
Ademking / README.md
Last active Aug 30, 2019
Facebook api links
View README.md
1: Count the number of sent messages
https://graph.facebook.com/me/threads?limit=50&access_token=xxxxxxxxxxx

2: Delete the message
https://graph.facebook.com/id_tu_api_dem_tin_nhan?access_token=&method=delete

3: Get ds all your friends
https://graph.facebook.com/fql?q=SELECT+uid,+name,+friend_count,+subscriber_count+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())++ORDER+BY+rand()+LIMIT+5000&access_token=
@Ademking
Ademking / README.md
Created Jul 26, 2019
Flutter: upgrade the version code for play store (Fix)
View README.md
@Ademking
Ademking / nlp.js
Created Jul 16, 2019
NLP.js for browser
View nlp.js
This file has been truncated, but you can view the full file.
@Ademking
Ademking / fest.css
Created Jul 7, 2019
ChatTheme - Red Version (No avatar)
View fest.css
/* Red Theme by AdemKouki - 2019 */
@import url('https://fonts.googleapis.com/css?family=Cairo');
.theme--day .header-bar {
background-color: #c70404;
}
.header-avatar, .info , .menu, #share_button{
display: none;
}
@Ademking
Ademking / README.md
Created Jul 1, 2019
Events in Ionic 4
View README.md
@Ademking
Ademking / README.md
Created Jun 30, 2019
Generate Keystore for Ionic
View README.md

How to generate base64 hash for facebook login

video: https://www.youtube.com/watch?v=sOxaeS8mJJg

keytool -genkey -v -keystore FestivalBizerte.keystore -alias com.festivalbizerte.com -keyalg RSA -keysize 2048 -validity 10000

keytool -exportcert -keystore FestivalBizerte.keystore -list -v

keytool -exportcert -alias com.festivalbizerte.com -keystore FestivalBizerte.keystore | "C:\OpenSSL-Win64\bin\openssl" sha1 -binary | "C:\OpenSSL-Win64\bin\openssl" base64

@Ademking
Ademking / README.md
Created Jun 24, 2019
Convert Numbers in Roman numerals
View README.md
function toRoman(value) {
  let number = Math.ceil(parseInt(value));
  if (isNaN(number)) {
    console.log("The format is wrong! Please enter the number")
    return value
  } else {
    if (0 >= number) {
      console.log("Please enter a number greater than 0!")
      return value
You can’t perform that action at this time.