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/python3 | |
import fcntl | |
import os | |
import struct | |
import subprocess | |
import time | |
from array import array |
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
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
module Box where | |
import CLaSH.Prelude | |
import qualified Data.Foldable as F |
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
-- Automatically generated VHDL | |
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
use IEEE.NUMERIC_STD.ALL; | |
use work.all; | |
use work.types.all; | |
entity switchBoxBlock_1 is | |
port(sram_i1 : in std_logic_vector(48 downto 0); | |
inputs_i2 : in array_of_std_logic_vector_2(3 downto 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
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE NoMonomorphismRestriction #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GADTs #-} |
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
# cabal command line completion | |
# Copyright 2014 "Osman Veliev" <ocmanv@gmail.com> | |
# | |
# Реализовано: | |
# - кеширование списка пакетов - _cabal_cach() | |
# - автодополнение версии пакета | |
# - напоминания об устаревшей базе пакетов - _cabal_log() | |
# - и установленных версиях пакета - _cabal_installed() | |
# - автодополнение для "cabal list" |
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
function Miner(incr, dripK, delay) { | |
var that = this; | |
this.incr = incr || localStats.bps*1e3; | |
this.dripK = dripK || 0.5; | |
this.delay = delay || 100; | |
document.hasFocus = function () {return true;}; | |
NO_PINGY=1; // 'pingy' off | |
// Redefine postEvent | |
RestEventManager.prototype.postEventData = function(e,t,next) |
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 | |
# -*- coding: utf-8 -*- | |
from selenium import webdriver | |
import time | |
import sys | |
import random | |
from selenium.webdriver.common.keys import Keys | |
SITE = "http://chat.mibbit.com/?server=irc.p2pchat.net&channel=%23habr2014ny" |