Skip to content

Instantly share code, notes, and snippets.

@kwikadi
kwikadi / pep8
Last active August 2, 2018 09:40
pep8
import operator
def take_coordinates():
n = int(input("Enter the number of points: "))
points = []
for i in range(1, n+1):
comma_point = input(f"Enter coordinate {str(i)}, comma separated: ")
list_point = list(map(int, comma_point.split(",")))
points.append(list_point)
return points
The year 2007 changed the face of the worls as we knew it. I'm not here to debate whether the iPhone was the first of its kind or not, but the fact remains that the introduction of the iPhone in 2007 and the introduction of its AppStore in 2008 decided what phones in the future were going to look like. For the time, iOS was great, and people were happy. Then came Google, with Android in tow, a war was waged on the smartphone wars, and people were happier still. After smartphones, the reimagination hammer came down on tablets, and once again, Apple led the way, with Microsoft not far behind. After that, smartwatches, and smart TVs, and everything smart, but these didn't really feel 'reinvented' like the original smartphone did. Companies exist to make money, and for that they need to sell the public an idea. The idea that their product is desirable. And so, there was a hole that needed to be filled, a need to introduce a new product category, which would enthral audiences across the world, like smartphones did
@kwikadi
kwikadi / le bhai
Created March 20, 2016 14:05
article
The year 2007 changed the face of the worls as we knew it. I'm not here to debate whether the iPhone was the first of its kind or not, but the fact remains that the introduction of the iPhone in 2007 and the introduction of its AppStore in 2008 decided what phones in the future were going to look like. For the time, iOS was great, and people were happy. Then came Google, with Android in tow, a war was waged on the smartphone wars, and people were happier still. After smartphones, the reimagination hammer came down on tablets, and once again, Apple led the way, with Microsoft not far behind. After that, smartwatches, and smart TVs, and everything smart, but these didn't really feel 'reinvented' like the original smartphone did. Companies exist to make money, and for that they need to sell the public an idea. The idea that their product is desirable. And so, there was a hole that needed to be filled, a need to introduce a new product category, which would enthral audiences across the world, like smartphones did
objectName
modal
windowModality
enabled
geometry
frameGeometry
normalGeometry
x
y
pos
@kwikadi
kwikadi / sentences_controller.php
Created February 18, 2016 14:49
random method in sentences controller
//Hack to ensure random doesn't break
if($randomId == 'error' || $randomId == 'disabled') {
$randomId = 1;
}
@kwikadi
kwikadi / nope.txt
Created June 25, 2015 18:30
Random gist to make the damn bot work for a living! #ideabin
nopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenopenope
@kwikadi
kwikadi / trial.md
Last active August 29, 2015 14:21
Mittu teaching

#Test Gist

This is a test gist Thanks to @nickedes for this! YAY :D :P :)

@kwikadi
kwikadi / wikiproj
Created November 26, 2014 18:10
The Wiki Project: Mapping wikipedia links into a graph #wiki #ideabin
Create a graph for all links in wikipedia.
Insipred by '4 links' concept.
Using pure C++
1. Download wiki dumps (~10 GB)
2. Rip out all links (Simple regex)
3. Create graph
4. Become happy
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">