Skip to content

Instantly share code, notes, and snippets.

View andreis's full-sized avatar

andreis

View GitHub Profile
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (min-resolution: 144dpi), (-webkit-min-device-pixel-ratio: 1.5)
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
WebGL: INVALID_OPERATION: drawArrays: attribs not setup correctly dir/Interlaken,+Switzerland/Zurich,+Switzerland/@47.240032,8.616212,11z/dat…1m1!1s0x47900b9749bea219:0xe66e8df1e71fdc03!2m2!1d8.5391825!2d47.3686498:1
WebGL: INVALID_VALUE: texImage2D: width or height out of range dir/47.2308094,8.6342368/Nice,+France/@45.5564777,6.0122439,7z/data=!3m1!4b…m1!1s0x12cdd0106a852d31:0x40819a5fd979a70!2m2!1d7.265592!2d43.696036!3e0:1
254
WebGL: INVALID_VALUE: texSubImage2D: dimensions out of range dir/47.2308094,8.6342368/Nice,+France/@45.5564777,6.0122439,7z/data=!3m1!4b…m1!1s0x12cdd0106a852d31:0x40819a5fd979a70!2m2!1d7.265592!2d43.696036!3e0:1
WebGL: too many errors, n
Usage: new [options] args
Options:
-h --help
display this message
-i --install
install templates from a repository
-s --silent -f --force
supress output; silent fail, all answers Yes
-t --template
#!/usr/bin/env python3
# https://www.hackerrank.com/challenges/angry-children
import sys
def solve(L, k):
# stuff
n = int(input())
k = int(input())
#!/usr/bin/env python3
# https://www.hackerrank.com/challenges/insertion-sort
count = 0
def mergesort(L, l, r):
if l+1 >= r: return
mid = int((l+r+1)//2)
mergesort(L, l, mid)
#!/usr/bin/env python3
# https://www.hackerrank.com/challenges/insertion-sort
'''
0 1 2 3 .. n-1
n = 6
3 1 2 5 1 2 array
4 0 1 2 0 0 DP array
@andreis
andreis / my-etc-hosts
Created February 8, 2014 16:48
My /etc/hosts for Getting Shit Done
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
@andreis
andreis / <OperatorsOperatingOperations@spamgoes.in>
Last active January 4, 2016 14:59
Best spam I've ever received
If you are suffering PTSD and feeling suicidal, because of what you did whilst serving in foreign fields, and feel you cannot live with yourself and what you did any longer, then you are ready to redeem yourself with God.
Committing suicide is not The Way and is against God's Law, for which you will find no rest, only punishment from God.
The only way to redeem yourself is to start to keep the First and Great Commandment - "And thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy mind, and with all thy strength and serve Him ONLY: this is the first Commandment" - the one you should never have broken, and which, if you had kept it, would have prevented you from being in the tragic position you are in today.
911 was an inside job. You went to war for a lie, told to you by the people you swore to defend your country against - domestic enemies/traitors. The ones who did this to you are not 5 thousand miles away and you know their names and where to find them. (See "Iraq
1 Decembrie - mancare
Cascaval
£4.12 480g Rucar http://www.albinuta.co.uk/Lactate/Cascaval/Therezia-Cascaval-Rucar-480g/prod_265.html
£7.00 850g Afumat http://www.albinuta.co.uk/Lactate/Cascaval/Therezia-Cascaval-afumat-460g/prod_246.html
Branzeturi
£6.00 400g Feta http://www.albinuta.co.uk/Lactate/Telemea-Branza-de-burduf/LaDorna-Feta-400g/prod_240.html
Process: Cave Story+ [44010]
Path: /Users/USER/Library/Application Support/Steam/*/Cave Story+.app/Contents/MacOS/Cave Story+
Identifier: com.nicalis.cavestory
Version: 1.1 (1.1)
Code Type: X86 (Native)
Parent Process: launchd [140]
Responsible: Cave Story+ [44010]
User ID: 501
Date/Time: 2013-11-16 18:11:34.527 +0000
An open letter to the media, by Anonymous:
Following the Million Mask March organized by Anonymous, the U.K. based news website The Telegraph published an article titled, “Anonymous have been exposed as hypocrites. Watch them try to wiggle their way out of it.” This smear refers to the well-known fact that Warner Bros. owns the rights to our mask, profits from its sale, and that the masks themselves are produced in developing nations.
According to the article, authored by New Statesman staffer Martha Gill, the conditions in a Brazil factory that produces Guy Fawkes masks are “unpleasant” for the workers. Gill doesn’t say how she knows the conditions are unpleasant, just that they are.
In her article, she doesn’t claim to have spoken with the workers and she doesn’t provide the name of the factory in which they’re manufactured. On Twitter Gill asks, “So those V for Vendetta masks are made in sweatshops. Does this matter?” Later when someone challenges her on the issue, she says, “That’s the word,” essenti