This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"strconv" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def solve_right(A, b): | |
try: a = A.solve_right(b) | |
except: return "no solution" | |
if A.rank() == len(b): return a | |
return (a, matrix(A.right_kernel().basis())) | |
# Solve matrix A with rank 2 | |
F = IntegerModRing(5) | |
A = matrix(F, [[0,2,1,3],[4,0,1,0],[2,4,0,1]]) | |
b = vector([4,2,4]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! Github Dark v1.20.84 (2018-11-19) */ | |
/*! Repository: https://github.com/StylishThemes/GitHub-Dark */ | |
/*! Userstyle: http://userstyles.org/styles/37035 */ | |
/*! License: https://creativecommons.org/licenses/by-sa/4.0/ */ | |
/* Override default browser styles */ | |
button { | |
color: #b5b5b5 !important; | |
} | |
/* begin auto-generated rules - use tools/generate.js to generate them */ | |
/* auto-generated rule for "background: #fff" */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
K = RR | |
# Input matrix here | |
A = matrix(K, [[-3, 32/5, 4 ], | |
[4, 24/5, 3 ], | |
[5, 6*sqrt(2), 5*sqrt(2)]]) | |
m,n = (3,3) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import Tkinter | |
import random | |
import sys | |
# Represents one block in tetris | |
class TetrisBlock(): | |
SHAPES = [[(0,0), (1,0), (0,1), (1,1)], # BOX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Same includes as in u6_1.c. Copy Pasted some code of the given source code. | |
*/ | |
#include <stdlib.h> | |
#include <time.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript -e 'tell application "System Events" to set the autohide of the dock preferences to true'; # Autohiding dock | |
defaults write com.apple.dock autohide-delay -float 0; # Autohiding delay 0ms | |
defaults write com.apple.dock autohide-time-modifier -float 0.2; # Animation time 200ms | |
killall Dock; # Restart dock application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/usr/bin/env python | |
# Please dont judge me the code is shity i just was anooyed by the website | |
# Please some body clean up the mess below and implement a nicer one. Thanks! | |
# This code needs Ghost.py installed. (Run install.sh) | |
import thread | |
import ghost | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("X S S"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, math, os | |
from bs4 import BeautifulSoup | |
SAMPLESPERPAGE = 15 | |
SAMPLEDIRECTORY = "samples" | |
class Fetcher: | |
def __init__(self): | |
self.s = requests.session() |
NewerOlder