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
taskkill /F /IM explorer.exe | |
devcon disable "*VEN_10EC*" | |
net stop "Windows Audio" | |
devcon enable "*VEN_10EC*" | |
net start "Windows Audio" | |
start explorer.exe |
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
using System; | |
using System.Diagnostics; | |
using System.Reflection; | |
namespace RestartSound | |
{ | |
static class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
# *snip* | |
class StaticText(_core.Control): | |
"""Proxy of C++ StaticText class""" | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
__repr__ = _swig_repr | |
def __init__(self, *args, **kwargs): | |
""" | |
__init__(self, Window parent, int id=-1, String label=EmptyString, | |
Point pos=DefaultPosition, Size size=DefaultSize, |
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 iseven($n) { | |
$lastdigit = substr($n, -1); | |
if ($lastdigit == '0') | |
return true; | |
elseif ($lastdigit == '2') | |
return true; | |
elseif ($lastdigit == '4') | |
return true; | |
elseif ($lastdigit == '6') | |
return true; |
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 web | |
urls = ( | |
'/', 'index', | |
# etc... | |
) | |
class index: | |
def GET(self): | |
pass |
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
/* | |
Bug: | |
TypeScript compiler should generate a *fresh* variable name for a lexically captured this pointer. | |
For example, in the lambda assigned to window.onmousemove shown below, the captured outer this-pointer | |
should not be named "_this" since it would clash with an existing local variable, but instead should | |
be given a name that is not in scope, e.g. "_this2". | |
Tested in: |
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
module Combinaties where | |
deleteFromHead :: Eq a => a -> [a] -> [a] | |
deleteFromHead x [] = [] | |
deleteFromHead x (y:ys) | |
| x == y = ys | |
| otherwise = (y:ys) | |
generate :: Eq a => Int -> [a] -> [a] -> [[a]] |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CovariantReturnTypes | |
{ | |
interface IA<out This> | |
where This : IA<This> |
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 flip(f) {return curry(function(y,x){return f(x)(y)})} | |
function curry(f) {return function(x){return function(y){return f(x,y)}}} | |
parseDec = flip(curry(parseInt))(10) | |
['10','10','10','10','10'].map(parseDec) |
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 fleiss_kappa(ratings, n, k): | |
''' | |
Computes the Fleiss' kappa measure for assessing the reliability of | |
agreement between a fixed number n of raters when assigning categorical | |
ratings to a number of items. | |
Args: | |
ratings: a list of (item, category)-ratings | |
n: number of raters | |
k: number of categories |
OlderNewer