Skip to content

Instantly share code, notes, and snippets.

View Euphorbium's full-sized avatar

Juozas Masiulis Euphorbium

View GitHub Profile
@Euphorbium
Euphorbium / make.out
Created September 22, 2017 09:13
make dep &> make.out
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C dep
wget -nc https://downloads.sourceforge.net/project/glew/glew/2.1.0/glew-2.1.0.tgz
--2017-09-22 12:07:21-- https://downloads.sourceforge.net/project/glew/glew/2.1.0/glew-2.1.0.tgz
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://netix.dl.sourceforge.net/project/glew/glew/2.1.0/glew-2.1.0.tgz [following]
--2017-09-22 12:07:21-- https://netix.dl.sourceforge.net/project/glew/glew/2.1.0/glew-2.1.0.tgz
Resolving netix.dl.sourceforge.net... 87.121.121.2
Connecting to netix.dl.sourceforge.net|87.121.121.2|:443... connected.
@Euphorbium
Euphorbium / gist:07c1a814d6eb64f5d75e
Created May 10, 2015 06:21
Magic square searcher
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 18 23:52:19 2015
@author: euphorbium
Finds magic squares in two dimmensional matrix
"""
import itertools
import numpy as np
import matplotlib.pyplot as plt
from collections import Counter
def make_chart_simple_line_chart(plt):
years = [1950, 1960, 1970, 1980, 1990, 2000, 2010]
gdp = [300.2, 543.3, 1075.9, 2862.5, 5979.6, 10289.7, 14958.3]
# create a line chart, years on x-axis, gdp on y-axis
plt.plot(years, gdp, color='green', marker='o', linestyle='solid')