Skip to content

Instantly share code, notes, and snippets.

View kezadias's full-sized avatar

Django Lorentzson kezadias

View GitHub Profile
@kezadias
kezadias / main.py
Created August 10, 2016 18:02
A script that turns a short-lived access token into a one that never expires.
# -*- coding: utf-8 -*-
import requests
import json
def main():
app_id = raw_input('App id: ')
app_secret = raw_input('App secret: ')
short_lived_access_token = raw_input('Short lived access token (obtained by using Graph API): ')
long_lived_access_token = extend_short_lived_access_token(app_id, app_secret, short_lived_access_token)
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Cart</a>
{
"auto_complete_selector": "source, text",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_face": "Fira Code",
"font_size": 15,
"ignored_packages":
[
],
"line_numbers": false,
"line_padding_bottom": 8,
@kezadias
kezadias / index.html
Created July 5, 2015 10:15
Just a simple HTML file with a script included.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example script</title>
</head>
<body>
<h1>Hi! :)</h1>
<script src="yourscript.js"></script>
@kezadias
kezadias / main.js
Created June 7, 2015 19:41
Agar.io Javascript
(function(f, g) {
function Pa() {
ja = !0;
xa();
setInterval(xa, 18E4);
A = ka = document.getElementById("canvas");
e = A.getContext("2d");
A.onmousedown = function(a) {
if (ya) {
var b = a.clientX - (5 + p / 5 / 2),
@kezadias
kezadias / main.cpp
Created May 5, 2015 13:11
Problem with light
#include "src/graphics/window.h"
#include "src/graphics/shader.h"
#include "src/maths/maths.h"
#include "src/graphics/buffers/buffer.h"
#include "src/graphics/buffers/indexbuffer.h"
#include "src/graphics/buffers/vertexarray.h"
int main()
{
@kezadias
kezadias / home.blade.php
Created April 26, 2015 08:35
Hejsan :-)
<ul class="list-group">
@foreach($folders as $folder)
@if(is_dir($folder))
<div class="form-group">
<a href="/{{ $folder }}" class="list-group-item clearfix">{{ $folder }}
<form action="#" method="POST">
<button type="submit" class="btn btn-danger btn-xs pull-right">Delete</button>
</form>
</a>
</div>
@kezadias
kezadias / main.cpp
Created April 16, 2015 08:05
ALL FILES
#include <GLFW/glfw3.h>
#include <iostream>
#include "src/graphics/window.h"
int main()
{
using namespace sparky;
using namespace graphics;
I am the copyright owner of the content, "{{ $infringing_title }}" being infringed at:
{{ $infringing_link }}
You may find the original content at:
{{ $original_link }}
{{ $original_description }}