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
(in-package :cl-user) | |
;;(ql:quickload '(:dexador :plump)) | |
(defpackage :stocks | |
(:use :cl) | |
(:import-from :dexador) | |
(:import-from :plump)) | |
(in-package :stocks) |
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 javax.crypto.SecretKey; | |
import java.io.FileInputStream; | |
import java.nio.channels.FileChannel; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardOpenOption; | |
import java.security.KeyStore; | |
public class ShowKey { | |
public static void main(String[] args) throws Exception { | |
if (args.length != 3) { |
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
;; title: game title | |
;; author: game developer, email, etc. | |
;; desc: short description | |
;; site: website link | |
;; license: MIT License (change this to your license of choice) | |
;; version: 0.1 | |
;; script: fennel | |
(fn player [px py] | |
(var x px) |
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
: hexchr>n ( chr -- n ) | |
48 over 57 between? if 48 - exit then | |
65 over 70 between? if 55 - exit then | |
97 over 102 between? if 87 - exit then | |
-1 ; | |
: hexstr>n ( adr len -- n ) | |
0 >r | |
begin | |
dup 0 > |
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
ExpensePlot new | |
x: #key ; | |
y: #value; | |
data: ((self firstMonth to: self lastMonth) collect: [:i | i -> (self month: i) sum ]); | |
plot. | |
((self firstMonth to: self lastMonth) collect: [:i | (self month: i) totalFood ]) average. |
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
Object>>chain | |
^ ChainProxy new setTarget: self | |
ChainProxy>>doesNotUnderstand: aMessage | |
target := aMessage sendTo: target. | |
^ target | |
ChainProxy>>setTarget: anObject | |
target := anObject. | |
^ self |
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 sys | |
from operator import add | |
from pyspark.sql import SparkSession | |
import time | |
if __name__ == "__main__": | |
#if len(sys.argv) != 2: | |
# print("Usage: wordcount <file>", file=sys.stderr) | |
# sys.exit(-1) |
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 sys | |
from random import random | |
from operator import add | |
from pyspark.sql import SparkSession | |
if __name__ == "__main__": | |
""" | |
Usage: pi [partitions] |
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
1319 val: e | |
1047 val: c | |
1567 val: g | |
784 val: G | |
659 val: E | |
880 val: A | |
988 val: B | |
932 val: Bb | |
1397 val: f | |
1175 val: d |
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 socket, threading, sys | |
class DhtServer(threading.Thread): | |
def __init__(self, port): | |
threading.Thread.__init__(self) | |
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
self.socket.bind(('0.0.0.0', port)) | |
self.socket.listen(1) | |
def run(self): |
NewerOlder