Skip to content

Instantly share code, notes, and snippets.

View whoeverest's full-sized avatar

Andrej T. whoeverest

  • Skopje, Republic of Macedonia
View GitHub Profile
@whoeverest
whoeverest / gist:3917320
Created October 19, 2012 10:15
nginx conf
server {
listen 80; ## listen for ipv4; this line is default and implied
listen [::]:80 default ipv6only=on; ## listen for ipv6
root /usr/share/nginx/www;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAkxFymDz1PRVGiAwRomjo1lghggBXY8FIoP5RKZlyRmr1T+beu0qLw7iREu0n/2UbkIkRMgWnJT+92ycdiKIQC8At5sdDPGfBaC6Me5wOSLzDA3V/+NQCS6iNSpftj+MiKJAUDvcqGLctjwpNwd01i89EG/d4mdkMCf+zh/8R1Cp0xRrk8IYwdCjnNJk5fPVaYjARMBRFUbALOaK02pkZWsH2LfeZfayZ2J6hkYCai0jJmgNV1U8XJSG3JLp1cM58MdhE5Zbj0ydI+5tEl7AUKht6YVx3nTKh9mDHhB4UXZho9BjP7VXTqEq1DQLmUK5Jxd/umOdp9nmKXfLRn1bB andrej.trajchevski@swissnet.mk
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
table=[" x x xx",
" x xx x",
" x xx x",
" x x ",
" x x "]
def numAllPercs(table, numStreams):
matrica=[list(x) for x in table]
def sosedi2(e):
import urllib2
import bs4 as BeautifulSoup
from PIL import Image
from cStringIO import StringIO
import tempfile, subprocess
URL = "http://www.skopjefinki.ekoinformatika.mk"
WHITE = (255, 255, 255)
BLACK = (0, 0, 0, 255)
<html>
<head>
<script src="jquery-1.8.2.js"></script>
<script src="templating.js"></script>
<script type="text/html" id="packet_tmpl">
<div>
<% for (var key in p) { %>
packet name <%=p[key]%> <br/>
<% } %>
</div>
$(function(){
// console.log($(document).find('div#mw-content-text a'));
// $.get("http://en.wikipedia.org/wiki/Kassina_kuvangensis", function(data){
// description = $(data).find('div#mw-content-text p')[0];
// console.log($(description).text());
// })
$("div#mw-content-text a").mouseover(function(){
$(function(){
$("div#mw-content-text a").mouseover(function(){
var new_link_title = "This needs to be changed.";
$.get(this.href, function(data){
var description_html = $(data).find('div#mw-content-text p')[0];
new_link_title = $(description_html).text(); // this assignment doesn't work
})
@whoeverest
whoeverest / cosm_credentials.py
Created November 19, 2012 10:12 — forked from glisha/readout_to_cosm.py
Хаклаб on/off switch to cosm
cosm = {
feed_id: 86779,
api_key: <COSM KEY>,
}
@whoeverest
whoeverest / science.md
Last active October 13, 2015 04:37
Richard Feynman - What is Science?

What is Science?

Presented at the fifteenth annual meeting of the National Science Teachers Association, 1966 in New York City, and reprinted from The Physics Teacher Vol. 7, issue 6, 1969, pp. 313-320 by permission of the editor and the author. [Words and symbols in brackets added by Ralph Leighton.]

I thank Mr. DeRose for the opportunity to join you science teachers. I also am a science teacher. I have much experience only in teaching graduate students in physics, and as a result of the experience I know that I don't know how to teach.

I am sure that you who are real teachers working at the bottom level of this hierarchy of teachers, instructors of teachers, experts on curricula, also are sure that you, too, don't know how to do it; otherwise you wouldn't bother to come to the convention.

The subject "What Is Science" is not my choice. It was Mr. DeRose's subject. But I would like to say that I think that "what is science" is not at all equivalent to "how to teach science," and I must call that to your