This file contains hidden or 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 select | |
| import datetime | |
| import psycopg2 | |
| import psycopg2.extensions | |
| from sqlalchemy import create_engine, text | |
| engine = create_engine("postgresql+psycopg2://vagrant@/postgres") |
This file contains hidden or 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 numpy as np | |
| import matplotlib.pyplot as plt | |
| import tensorflow as tf | |
| import tensorflow.keras.layers as layers | |
| import tensorflow.keras.losses as loss | |
| import tensorflow_datasets.public_api as tfds | |
| from sys import argv | |
| from random import Random | |
| from os import walk |
This file contains hidden or 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
| Оцон шувуу, тарвага хоёрын аль нь түрүүлэх вэ? (тундарт тарвага байхгүй) | |
| Ээж охин хоёр юугаараа адилхан бэ? (хүйсээрээ) | |
| Ямар хүн авах биш өгөх дуртай байдаг вэ? (боксчин) | |
| Модны голд юу байдаг вэ? (о үсэг) | |
| 100 төгрөгөө 300 найздаа яаж өгөх вэ? (аяга самар аваад өгөх) | |
| Дусал дусал бороотой үдшээр дурласан охиндоо дуу аялан очсон Дондог ямар цэцэг аваачиж өгсөн бэ? (нойтон цэцэг) | |
| Нар, сар, од гурвын дунд юу байдаг вэ? (таслал) | |
| Эмээгийн эмээ хэд насалсан бэ? (эмээгээсээ өөрөө асуу) | |
| Бүх насаараа бэлтгэсэн шилдэг тагнуулчаа амеркчууд орос руу илгээжээ. Гэтэл өнөөх нь онгоцноос буунгуутаа л баригдчихжээ. Яагаад? (хар арьстан байсан учраас) | |
| Хамгийн хурдан дэлхийн нөгөө талд яаж очих вэ? (доошоо нүхлээд) |
This file contains hidden or 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
| Хөдөлмөр эрхэлж буй иргэд цалингаас цалингийн хооронд амьдарч байгаа ба сүүлийн үед юмны үнэ нэмэгдэх болсон нь нийгэмд санхүүгийн хүнрэлийг бий болгоод буй. +++++SEP+++++ Employers are living between wages and salaries, and recent increases in prices have created financial hardships in society. | |
| Учир нь бараа бүтээгдэхүүний үнэ нэмэгдээд байдаг боловч цалин хөлсний үнэ огт нэмэгдэхгүй бөгөөд тэрхүү үнэ нь нэмэгдсэн бараа бүтээгдэхүүнийг худалдан авах хэрэглээгээ хангахад сарын цалин нь хаанаа ч хүрэхгүй байгаа юм. +++++SEP+++++ Because the price of the goods increases, the price of wages does not increase and that the monthly wages are not enough to meet the consumption of the goods being increased. | |
| Гэхдээ нэмлээ гээд нэх шалисан юмгүй байгаад иргэд бухимдалтай хандаж буй юм. +++++SEP+++++ However, citizens are frustrated by the fact that they have not been tested yet. | |
| Түүнчлэн хамгийн хариуцлагатай, өндөр мэдлэг боловсрол шаардагддаг мэргэжлийн нэг болох багш нарын цалин нэмэгдэхгүй хэвээр байсаар буй. +++++ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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/python2.7 | |
| """Quick hack of 'modern' OpenGL example using pysdl2 and pyopengl | |
| that shows a textured triangle; assumes there is a 'hazard.png' image | |
| file in working directory. | |
| Based on: | |
| pysdl2 OpenGL example | |
| http://www.tomdalling.com/blog/modern-opengl/02-textures/ | |
| http://www.arcsynthesis.org/gltut/Basics/Tut02%20Vertex%20Attributes.html |
This file contains hidden or 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/python2.7 | |
| """Quick hack of 'modern' OpenGL example using pysdl2 and pyopengl | |
| Based on | |
| pysdl2 OpenGL example | |
| http://www.arcsynthesis.org/gltut/Basics/Tut02%20Vertex%20Attributes.html | |
| http://schi.iteye.com/blog/1969710 | |
| """ | |
| import sys |
This file contains hidden or 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 bash | |
| export CACA_DRIVER=ncurses; youtube-dl -q -o- "https://www.youtube.com/watch?v=jM8dCGIm6yc" | mplayer -really-quiet -vo caca -fps 15 -af scaletempo -softvol -softvol-max 400 -cache 8192 - |
This file contains hidden or 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
| // SDL2 Hello, World! | |
| // This should display a white screen for 2 seconds | |
| // | |
| // sudo apt install libsdl2-dev | |
| // sudo apt install clang | |
| // | |
| // clang main.c -o hello_sdl2_clang -lSDL2 | |
| // clang++ main.cpp -o hello_sdl2_clangpp -lSDL2 | |
| // gcc main.c -o hello_sdl2_gcc -lSDL2 | |
| // g++ main.cpp -o hello_sdl2_gpp -lSDL2 |
This file contains hidden or 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
| #!/bin/bash | |
| ## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04 | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### |