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] | |
name = "fetch-appveyor-build-time" | |
version = "0.1.0" | |
authors = ["kennytm <[email protected]>"] | |
[dependencies] | |
regex = "0.2" | |
reqwest = "0.8" | |
serde = "1" | |
serde_derive = "1" |
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
#![feature(drop_types_in_const)] | |
#![feature(test)] | |
#![feature(rand)] // to be incorporated into libcore, so not using crates.io | |
#![feature(pattern)] | |
extern crate test; | |
extern crate rand; | |
use test::{Bencher, black_box}; | |
use rand::{XorShiftRng, SeedableRng}; |
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 python3 | |
from tkinter import * | |
from tkinter.ttk import * | |
from PIL import Image | |
from PIL.ImageDraw import Draw | |
from PIL.ImageTk import PhotoImage | |
import enum | |
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 python3 | |
def factorize(num): | |
while num % 2 == 0: | |
yield 2 | |
num //= 2 | |
prime = 3 | |
while prime * prime <= num: | |
while num % prime == 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
#!/usr/bin/env python3 | |
# | |
# explode.py --- Explode *.gif for Android | |
# Copyright (C) 2013 HiHex Ltd. | |
# | |
# This program is free software: you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation, either version 3 of the License, or (at your option) any later | |
# version. | |
# |
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 nupic.frameworks.opf.modelfactory as mf | |
import nupic.frameworks.opf.opfutils as ou | |
import nupic.frameworks.opf.predictionmetricsmanager as pm | |
import nupic.frameworks.opf.metrics as mt | |
import random | |
import math | |
STEPS = 5 | |
FIELD = 'latitude' |
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 <type_traits> | |
#include <cstdio> | |
namespace L { | |
template <int n> | |
struct N { | |
static constexpr bool equals(int m) { return m == n; } | |
}; |
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
# Maintainer: Chris Bolton <[email protected]> | |
# Contributor: kennytm <[email protected]> | |
pkgname=rust-bin | |
pkgver=0.4 | |
pkgrel=3 | |
pkgdesc="A safe, concurrent, practical programming language." | |
arch=(i686 x86_64) | |
url="http://rust-lang.org" | |
license=('MIT') |
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
# Maintainer: kennytm <[email protected]> | |
# Contributor: kennytm <[email protected]> | |
pkgname=directfb-git | |
pkgver=20111209 | |
pkgrel=1 | |
pkgdesc='DirectFB is a thin library that provides hardware graphics acceleration, input device handling and abstraction, integrated windowing system with support for translucent windows and multiple display layers, not only on top of the Linux Framebuffer Device.' | |
arch=('i686' 'x86_64') | |
url='http://directfb.org/' | |
license=('LGPL') | |
makedepends=('git' 'gcc' 'autoconf' 'flux-git') |
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 std.typecons, std.algorithm, std.conv, std.stdio; | |
ulong getMask(ulong v) { | |
v |= v >> 1; | |
v |= v >> 2; | |
v |= v >> 4; | |
v |= v >> 8; | |
v |= v >> 16; | |
v |= v >> 32; | |
return v; |
NewerOlder