Skip to content

Instantly share code, notes, and snippets.

View Jeet1994's full-sized avatar
:electron:
Running fast!

Pragyaditya Das Jeet1994

:electron:
Running fast!
View GitHub Profile
@mrry
mrry / tensorflow_self_check.py
Last active August 24, 2023 17:13
[DEPRECATED] TensorFlow on Windows self-check
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@LeahBriscoe
LeahBriscoe / NodGenes.csv
Created September 19, 2016 06:05
Sample Data for "Make a Heatmap on R Studio"
Gene nodU nodS nodU/nodO nodD nodC2 nodB nodA nodI nodJ nodC1 nodH
Burkholderia 1 100 100 100 100 100 100 100 100 100 100 0
Burkholderia 2 99 98 98 94 90 94 98 98 96 87 0
Burkholderia 3 99 97 98 93 89 95 99 96 97 88 0
Burkholderia 4 98 94 96 99 79 94 98 96 94 89 0
Burkholderia 5 81 67 40 70 76 60 73 71 77 70 72
Burkholderia 6 80 66 39 69 76 60 73 70 77 70 69
Burkholderia 7 76 65 40 71 63 57 75 72 79 67 100
Burkholderia 8 76 69 40 72 63 56 75 74 79 66 94
Burkholderia 9 75 71 40 68 71 72 70 71 76 71 66
import Data.List
import Test.QuickCheck
import qualified Data.Map as Map
nats = [1..]
divides a b = b `mod` a == 0
sieve (n:t) m = case Map.lookup n m of
Nothing -> n : sieve t (Map.insert (n*n) [n] m)
Just ps -> sieve t (foldl reinsert (Map.delete n m) ps)
where
@rxaviers
rxaviers / gist:7360908
Last active July 16, 2024 17:35
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@chaoxu
chaoxu / SquareRoot.java
Created October 26, 2010 09:36
Using Lagrange's four-square theorem and geometry to solve for square root.
public class SquareRoot {
public static double sqrt(int n){
int[] v = vector(n);
return magnitude(v);
}
public static double magnitude(int[] v){
double a=v[1],b=v[0];
if(v.length>2){
int[] u = new int[v.length-1];