Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

KhalO KhanMaytok

🎯
Focusing
Block or report user

Report or block KhanMaytok

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
@KhanMaytok
KhanMaytok / css-media-queries-cheat-sheet.css
Created Oct 8, 2018 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
View css-media-queries-cheat-sheet.css
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@KhanMaytok
KhanMaytok / index.android.ios.js
Created Jun 11, 2018 — forked from pradeep1991singh/index.android.ios.js
Example AsyncStorage React Native
View index.android.ios.js
/**
* Example AsyncStorage React Native
* https://github.com/pradeep1991singh
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
@KhanMaytok
KhanMaytok / parallel_curl.sh
Created Dec 20, 2017 — forked from CMCDragonkai/parallel_curl.sh
Bash: GNU Parallel with Curl
View parallel_curl.sh
# do it once
seq 1 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'"
# do it twice
seq 2 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'"
# do it 4 times, but at 2 a time
seq 4 | parallel -n0 -j2 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'"
# you can also put all your commands into a file
View bot.js
// Maytok Boot
const BootBot = require('bootbot');
const bot = new BootBot({
accessToken: 'EAAWXYjB4XLcBADPoDZCVfAGyzAGwpvdhLlQNKkfGvtj6C8ez5TPDZAVZAYQwnqZAWw3ZC6pLEoya0kRZA0Q4z6zszq1K0at8mRTZAfNSGF05cLus96yyHKFeesIKmo7tkaknKtUYbEfbGiop68TeQQMBR4sjxeZAZBwdBWLZCQDhJMGPgdbTPkMoeA',
verifyToken: 'perita',
appSecret: '8e9fb9de00925f56778947b8f6ec54d4'
});
@KhanMaytok
KhanMaytok / delete-channel-messages.js
Created Aug 16, 2017 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel messages.
View delete-channel-messages.js
var https = require('https');
// CONFIGURATION #######################################################################################################
var token = 'SLACK TOKEN';
var channel = 'CHANNEL ID';
var privateChannel = false;
var delay = 300; // delay between delete operations in millisecond
// GLOBALS #############################################################################################################
View highscore.py
import requests
import sqlite3 as lite
import xml.etree.ElementTree as ET
r = requests.get("https://s130-es.ogame.gameforge.com/api/highscore.xml?category=1&type=0")
score = r.content
root = ET.fromstring(score)
all_data = []
timestamp = root.attrib['timestamp']
View Persona.php
<?php
namespace AppBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Person
*
* @ORM\Table(name="person")
* @ORM\Entity(repositoryClass="AppBundle\Repository\PersonRepository")
*/
View pasillo.html.twig
{% for ticket in unique_seat_list %}
{% if (loop.index + 3) is divisible by(4) %}
<tr>
{% endif %}
<td>{{ ticket }}</td>
{% if ticket is divisible by(2) and ticket is not divisible by(4) %} <td class="pasillo"> --- </td> {% endif %}
{% if ticket is divisible by(4) %}</tr>{% endif %}
{% endfor %}
View joder.py
galaxy_number = "{}%".format(i)
cur.execute("""SELECT Universe.coords
FROM
Player,
Universe
WHERE
Universe.player = Player.id
AND Universe.coords LIKE ?
AND (
Player.status LIKE '%i'
@KhanMaytok
KhanMaytok / xampp_php7_xdebug.md
Created Mar 11, 2017 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP
View xampp_php7_xdebug.md
You can’t perform that action at this time.