Instantly share code, notes, and snippets.

@spikar
spikar / kmeans.py
Created Feb 21, 2019
k-means implementation in python from scratch
View kmeans.py
class K_Means:
def __init__(self, k=2, tol=0.001, max_iter=300):
self.k = k
self.tol = tol
self.max_iter = max_iter
def fit(self, data):
self.centroids = {}
View untrusted-lvl4-solution.js
/*******************
* multiplicity.js *
*******************
*
* Out of one cell and into another. They're not giving you
* very much to work with here, either. Ah, well.
*
* Level filenames can be hints, by the way. Have I
* mentioned that before?
*
View untrusted-lvl7-solution.js
/*************
* colors.js *
*************
*
* You're almost at the exit. You just need to get past this
* color lock.
*
* Changing your environment is no longer enough. You must
* learn to change yourself. I've sent you a little something
* that should help with that.
View Potential Maintainers
Maintainers:
nand0p: python27Packages.sphinx_1_7_9, python37Packages.sphinx_1_7_9, python37Packages.sphinx_1_7_9, python37Packages.sphinx_1_7_9, python37Packages.sphinx_1_7_9, python27Packages.sphinx_1_7_9, python27Packages.sphinx_1_7_9, python27Packages.sphinx_1_7_9
View Changed Paths
x86_64-linux python27Packages.sphinx_1_7_9
aarch64-linux python37Packages.sphinx_1_7_9
aarch64-linux haskell.compiler.ghc844
i686-linux pakcs
x86_64-linux pakcs
x86_64-linux python37Packages.sphinx_1_7_9
x86_64-darwin haskell.compiler.ghcjs84
i686-linux haskell.compiler.ghc844
x86_64-linux haskell.compiler.ghcjs84
x86_64-darwin python37Packages.sphinx_1_7_9
View untrusted-lvl3-solution.js
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
View untrusted-lvl6-solution.js
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
@fishkingsin
fishkingsin / parser.fish
Created Feb 21, 2019
parse pod from folder
View parser.fish
function paresPod
for i in (find . -name "*.podspec")
echo "pod" "'"(basename "$i" ".podpsec")"'" ", :path =>" "'"(dirname "$i")"'",
end
end
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Feb 21, 2019
taskfactory v2018.2.4.503 - Passed - Package Tests Results
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Msi" displayName="Task Factory" displayVersion="18.2.4">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A2FF916B-E076-4239-8E25-F7C56C64A817}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files (x86)\Pragmatic Works\Task Factory\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{A2FF916B-E076-4239-8E25-F7C56C64A817}]]></UninstallString>