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
<template> | |
<a :href="link"> | |
<img :src="image" :style="{ [this.orientation]: 0 }" alt="Fork me on GitHub"> | |
</a> | |
</template> | |
<script lang="ts"> | |
import { Component, Prop, Vue } from 'vue-property-decorator'; | |
const palete = { |
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
#!/bin/bash | |
set -x | |
cd /boot/EFI/ | |
mv Microsoft/Boot/bootmgfw{,.orig}.efi | |
cp {grub/grubx64,Microsoft/Boot/bootmgfw}.efi |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
import numpy as np | |
import cPickle as pickle | |
import gym | |
# hyperparameters | |
H = 200 # number of hidden layer neurons | |
batch_size = 10 # every how many episodes to do a param update? | |
learning_rate = 1e-4 | |
gamma = 0.99 # discount factor for reward |
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
[ | |
{ | |
"distance": 79, | |
"name": "Policeman Monument", | |
"bearing": 84, | |
"latitude": 43.84599, | |
"image": "http://lh4.ggpht.com/pxXhWO9N2P06hsXgKABdT7MasbF6Rdv37bhJswycH4ELhE3_eZ58omN0cbmf3UBT17Vq1mlG49J-OehrL5a4eA", | |
"guid": "d407c66b765a4839ae04fd0c3f6d0539.16", | |
"compass": "E", | |
"longitude": 25.959249 |
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
#define T 30 | |
#define PIN_START 3 | |
#define PIN_TOP 4 | |
#define PIN_BOT 5 | |
#define PIN_DOWN 7 | |
#define PIN_UP 9 | |
void setup() { | |
pinMode(PIN_START, INPUT); |
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
#ifdef GL_FRAGMENT_PRECISION_HIGH | |
precision highp float; | |
#else | |
precision mediump float; | |
#endif | |
uniform vec2 resolution; | |
uniform int pointerCount; | |
uniform vec3 pointers[10]; | |
uniform float battery; |
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
#include <RCSwitch.h> | |
#define PIN 2 | |
RCSwitch rc = RCSwitch(); | |
void setup() { | |
Serial.begin(9600); | |
rc.enableReceive(digitalPinToInterrupt(PIN)); | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <alpm.h> | |
#include <alpm_list.h> | |
int main(void) { | |
alpm_errno_t *err; | |
alpm_handle_t *alpm = alpm_initialize("/", "/var/lib/pacman/", err); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.