Skip to content

Instantly share code, notes, and snippets.

View electron0zero's full-sized avatar
🎯
Focusing

Suraj Nath electron0zero

🎯
Focusing
View GitHub Profile
#The MIT License (MIT)
# Copyright (c) 2012 Jordan Wright <jordan-wright.github.io>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@electron0zero
electron0zero / gist:ae6b890348cf798d6748c16c93c4a1a2
Created July 10, 2017 22:10 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@electron0zero
electron0zero / followers_wc.ipynb
Created August 19, 2017 10:56 — forked from simecek/followers_wc.ipynb
Generate wordcloud of followers' descriptions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@electron0zero
electron0zero / data.json
Last active August 21, 2017 18:09
XYZ reader backend data
This file has been truncated, but you can view the full file.
[
{
"id": 1,
"title": "Ebooks, Neither E, Nor Books",
"author": "Cory Doctorow",
"body": "For starters, let me try to summarize the lessons and intuitions\r\nI've had about ebooks from my release of two novels and most of a\r\nshort story collection online under a Creative Commons license. A\r\nparodist who published a list of alternate titles for the\r\npresentations at this event called this talk, \"eBooks Suck Right\r\nNow,\" [eBooks suck right now] and as funny as that is, I don't\r\nthink it's true.\r\n\r\nNo, if I had to come up with another title for this talk, I'd\r\ncall it: \"Ebooks: You're Soaking in Them.\" [Ebooks: You're\r\nSoaking in Them] That's because I think that the shape of ebooks\r\nto come is almost visible in the way that people interact with\r\ntext today, and that the job of authors who want to become rich\r\nand famous is to come to a better understanding of that shape.\r\n\r\nI haven't come to a perfect understanding. I don't know what the\r\nfut
@electron0zero
electron0zero / TextRenderer.java
Created August 29, 2017 15:44 — forked from guoguo12/TextRenderer.java
This is one way to display subscript and superscript text using Libgdx. The markup used assumes that, in the raw string, subscript text is surrounded by underscores and superscript text is surrounded by carets. "bigFontName" and "smallFontName" correspond to fonts in the skin argument. See this blog post for more details: http://www.sparkfiregam…
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
@electron0zero
electron0zero / tweet_dumper.py
Created August 31, 2017 17:41 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@electron0zero
electron0zero / jekyll-and-liquid.md
Created August 31, 2017 18:43 — forked from magicznyleszek/jekyll-and-liquid.md
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@electron0zero
electron0zero / gitclonelarge
Created August 31, 2017 19:06
Git Clone a huge large repository
git clone https://github.com/torvalds/linux.git --depth=1
cd linux
for i in {1..100000..10};do git fetch --depth=$i;done
git fetch --unshallow
@electron0zero
electron0zero / http-cats.md
Created September 1, 2017 10:28
A jekyll page on super educational http cats

layout: default title: super educational http cats meow: true permalink: super-educational-http-cats cat-codes:

  • 100
  • 101
  • 200
  • 201
@electron0zero
electron0zero / fexbox-rows.html
Created September 9, 2017 04:27
Multi Row responsive flexbox thing, See it in action at this fiddle https://jsfiddle.net/oc52ez7h/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<!-- inline CSS -->