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
DATABASE_URL: | |
accept: # Listed in the order of preference | |
- protocol: postgres | |
- protocol: mysql | |
EMAIL_URL: | |
accept: | |
- protocol: smtp | |
SENTRY_URL: |
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
/ | |
- id: url | |
name: PHP | |
votes: 9001 | |
top_reasons: | |
- id: url | |
name: I'ts a fractal | |
link: dasdas | |
votes: 6666 |
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
(env) [lew21@apollo whyitsux]$ ./manage.py migrate | |
Traceback (most recent call last): | |
File "/home/lew21/WhyItSux/env/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute | |
return self.cursor.execute(sql, params) | |
File "/home/lew21/WhyItSux/env/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute | |
return Database.Cursor.execute(self, query, params) | |
sqlite3.OperationalError: no such table: django_site | |
The above exception was the direct cause of the following exception: |
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
diff -ur gpunode-cudacore/RTQuery.cuh cudacore/RTQuery.cuh | |
--- gpunode-cudacore/RTQuery.cuh 2015-05-25 01:17:50.780401283 +0200 | |
+++ cudacore/RTQuery.cuh 2015-05-25 01:17:46.931636701 +0200 | |
@@ -1,3 +1,6 @@ | |
+#ifndef RTQUERY_H_ | |
+#define RTQUERY_H_ | |
+ | |
#define RTCUBE_OP_NONE 0 | |
#define RTCUBE_OP_SUM 1 | |
#define RTCUBE_OP_MAX 2 |
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 | |
import re | |
import sys | |
url = sys.argv[1] | |
prefix, url_id = url.rsplit("/", 1) | |
id = int(url_id) | |
player_url = "http://www.tvp.pl/sess/tvplayer.php?object_id=" + url_id |
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
<html> | |
<head> | |
<title>pydbus tab completion demo</title> | |
<style> | |
div { | |
position: relative; | |
display: inline-block; | |
width: 780px; | |
height: 460px; | |
} |
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 | |
import re | |
import time | |
import sys | |
def URL(teryt): | |
while teryt[-2:] == "00": | |
teryt = teryt[:-2] | |
url = "http://klk.kbw.gov.pl/kalkulator/20141116/000000/SMD" | |
if len(teryt) > 0: |
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
require 'gollum/app' | |
class GollumAuth | |
User = Struct.new(:name, :email, :password_hash) | |
def users | |
if @_users | |
return @_users | |
end | |
all_users = YAML.load_file(File.expand_path('users.yml', File.dirname(__FILE__))) |
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
#include <string> | |
#include <iostream> | |
#include <boost/program_options/parsers.hpp> | |
#include <boost/program_options/variables_map.hpp> | |
#include "soa/service/service_utils.h" | |
using namespace std; | |
using namespace Datacratic; | |
auto readConfig(int argc, char** argv) -> ServiceProxyArguments |