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 gen; | |
import mustache; | |
import std.stdio; | |
import std.json; | |
import std.array; | |
import painlessjson; | |
class TestSuite | |
{ |
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
format = """ | |
[ ](bg:#73ba25)\ | |
[▓▒░](#73ba25)\ | |
[ ](fg:#73ba25 bg:#090c0c)\ | |
$directory\ | |
$git_branch\ | |
$git_status\ | |
\n$character""" | |
[character] |
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 main | |
import "fmt" | |
func main() { | |
fmt.Println("hello world!") | |
} |
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/strutils | |
import std/sequtils | |
proc count_increases(items : seq[int]) : int = | |
for i in 1 .. items.high: | |
if items[i] > items[i - 1]: | |
inc result | |
proc get_sums(items: seq[int]) : seq[int] = | |
for i in countup(2,items.len-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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"log" | |
"golang.org/x/crypto/ssh" | |
) | |
func main() { |
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 main | |
struct List { | |
head &Node | |
name string | |
} | |
struct Node { | |
mut: data int | |
next &Node |
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 ephem | |
from math import radians, degrees, cos, sin, asin, sqrt | |
from sense_hat import SenseHat | |
import time | |
import math | |
import os | |
import datetime | |
from time import sleep,strftime | |
import logging | |
import logzero |
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
from sense_hat import SenseHat | |
import time | |
import math | |
sensehat = SenseHat() | |
sensehat.low_light = True | |
class Spinner(): | |
def __init__(self,sensehat): |
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
; setup | |
; | |
; sudo apt-get install cmatrix nasm ; nasm -f elf64 -o matrix.o matrix.asm ; ld -o matrix matrix.o; ./matrix | |
SECTION .text | |
global _start | |
_start: | |
mov rdx, environment ; address of environment variables |
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 lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"></meta> | |
<meta | |
name="viewport" | |
content="width=device-width, initial-scale=1, shrink-to-fit=no" | |
></meta> |
NewerOlder