Skip to content

Instantly share code, notes, and snippets.

View a-eid's full-sized avatar
🎯
Focusing

Ahmed Eid a-eid

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html lang="en-US"><head>
<script type="text/javascript" src="http://get-a-fuckbuddy.com/en/6/script.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<title></title>
@a-eid
a-eid / 0_reuse_code.js
Created August 17, 2017 22:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>
* {
box-sizing: border-box;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>
* {
#rebind C-b => C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
window.formatWithSuffix = function(input){
suffixes = ['', 'k', 'm', 'g', 't'];
suffixIndex = 0;
while( Math.abs(input) >= 1000 && suffixIndex < suffixes.length ){
suffixIndex++;
input /= 1000;
}
return (
@a-eid
a-eid / task.py
Last active November 19, 2017 18:31
import numbers
def numOrString(list):
cache = []
strings = []
nums = []
for n in list:
if(isinstance(n, numbers.Number)):
pass
cache.append(1)
import UIKit
class Second: UIViewController {
@IBOutlet weak var trigger: RoundButton!
@IBOutlet weak var right: RoundButton!
@IBOutlet weak var left: RoundButton!
@IBOutlet weak var top: RoundButton!
var clicked = false
var rightCenter: CGPoint!
@a-eid
a-eid / 16:14
Created February 6, 2018 13:21
Feb 6 16:14:09 ahmeds-mbp com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.loginwindow.13375.4294967295): com.apple.AssistiveControl (lint): The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
Feb 6 16:14:09 ahmeds-mbp com.apple.xpc.launchd[1] (com.apple.coreservices.useractivityd): Unknown key for Boolean: DrainMessagesAfterFailedInit
Feb 6 16:14:09 ahmeds-mbp com.apple.xpc.launchd[1] (com.apple.coreservices.UASharedPasteboardProgressUI): Unknown key for Boolean: DrainMessagesAfterFailedInit
Feb 6 16:14:09 ahmeds-mbp com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.loginwindow.13375.4294967295): com.apple.DwellControl (lint): The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
Feb 6 16:14:09 ahmeds-mbp com.apple.xpc.launchd[1] (com.apple.imklaunchagent): This service is defined to be constantly running and is inherently inefficient.
Feb 6 16:14:09 ahmeds-mbp com.apple.xpc.launchd[1] (
@a-eid
a-eid / 16:13
Created February 6, 2018 13:21
Feb 6 16:13:29 192 Memory Purge[4693]: [error] Connection failed. Server error., not found
Feb 6 16:13:29 192 Memory Purge[4693]: [info] Status was: 404
Feb 6 16:13:29 192 Memory Purge[4693]: [info] ATAPIRequest failed: Server error., not found
Feb 6 16:13:45 192 com.apple.xpc.launchd[1] (com.apple.WindowServer[4368]): Service exited due to signal: Segmentation fault: 11 sent by exc handler[0]
Feb 6 16:13:46 192 sessionlogoutd[13366]: DEAD_PROCESS: 4367 console
Feb 6 16:13:46 192 com.apple.xpc.launchd[1] (com.apple.auditd[13367]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.auditd
Feb 6 16:13:46 192 aeid[13372]: audit warning: soft /var/audit
Feb 6 16:13:46 192 aeid[13371]: audit warning: allsoft
Feb 6 16:13:46 192 aeid[13374]: audit warning: closefile /var/audit/20180206130416.20180206131346
Feb 6 16:13:48 ahmeds-mbp findmydeviced[13376]: objc[13376]: Class LocalizedUnregisterErrorKey is implemented in both /System/Library/Priv