Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Jae Duk Seo JaeDukSeo

🎯
Focusing
View GitHub Profile
View html5-signup-form.markdown
View book-email-opt-in-react-js.markdown
@JaeDukSeo
JaeDukSeo / index.html
Created Jun 26, 2020
Playing card CSS Grid eCommerce layout
View index.html
<ul>
<li>
<div class="details">
<h2>Nike Odyssey React Shield</h2>
<p>$130</p>
<p>$130</p>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/881020/nike01a.png">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/881020/nike01b.png">
</div>
</li>
View fortnite-daily-item-shop.markdown
View Principle Directions from Weights.py
random_direction1 = []
random_direction2 = []
for w in copy_of_the_weights:
if w.dim() == 1:
random_direction1.append(torch.zeros_like(w))
random_direction2.append(torch.zeros_like(w))
else:
View Orthogonal Weight Projection.py
random_direction1 = []
random_direction2 = []
for w in copy_of_the_weights:
if w.dim() == 1:
random_direction1.append(torch.zeros_like(w))
random_direction2.append(torch.zeros_like(w))
else:
View Filter Orthogonalization.py
random_direction1 = get_random_weights(copy_of_the_weights)
random_direction2 = get_random_weights(copy_of_the_weights)
for d1,d2,w in zip(random_direction1,random_direction2,copy_of_the_weights):
if w.dim() == 1:
d1.data = torch.zeros_like(w)
d2.data = torch.zeros_like(w)
elif w.shape[0] == 10:
View filter norm.py
random_direction1 = get_random_weights(copy_of_the_weights)
random_direction2 = get_random_weights(copy_of_the_weights)
for d1,d2,w in zip(random_direction1,random_direction2,copy_of_the_weights):
w_norm = w.view((w.shape[0],-1)) .norm(dim=(1),keepdim=True)[:,:,None,None]
d_norm1 = d1.view((d1.shape[0],-1)).norm(dim=(1),keepdim=True)[:,:,None,None]
d_norm2 = d2.view((d2.shape[0],-1)).norm(dim=(1),keepdim=True)[:,:,None,None]
d1.data = d1.cuda() * (w_norm/(d_norm1.cuda()+1e-10))
View cps 125 lab 9 help.c
#include <stdio.h>
#include <string.h>
/* the planets structure */
typedef struct
{
char name [10];
double diameter;
int moons;
double orbit, rotation;
} planets_t;
@JaeDukSeo
JaeDukSeo / c solution for CPS 125 students.c
Last active Mar 27, 2019
c solution for CPS 125 students
View c solution for CPS 125 students.c
#include <stdio.h>
#include <string.h>
// this is the lab 7 homework problem tenfold (this is not the solution rather reference code)
// see here http://cps125.scs.ryerson.ca/labs/manual.html
void tenfold(int* array_pointer1,int* array_pointer2,int array_size){
for (int i=0;i<array_size;i++){
if(array_pointer1[i]<0){
array_pointer2[i] = array_pointer1[i] + 4;
}else{
You can’t perform that action at this time.