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
# Instructions: | |
# https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md#install | |
# https://github.com/Igalia/wolvic/blob/main/CHROMIUM.md | |
# Install build tools | |
# ninja-build is not necessary (it's included in the depot_tools) | |
sudo dnf install -y gperf | |
# Setup depot_tools | |
cd ~/git |
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
// YouTube API video uploader using JavaScript/Node.js | |
// You can find the full visual guide at: https://www.youtube.com/watch?v=gncPwSEzq1s | |
// You can find the brief written guide at: https://quanticdev.com/articles/automating-my-youtube-uploads-using-nodejs | |
// | |
// Upload code is adapted from: https://developers.google.com/youtube/v3/quickstart/nodejs | |
const fs = require('fs'); | |
const readline = require('readline'); | |
const assert = require('assert') | |
const {google} = require('googleapis'); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Basketball Prototype</title> | |
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script> | |
<script src="//cdn.rawgit.com/donmccurdy/aframe-physics-system/v4.0.1/dist/aframe-physics-system.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.0/dist/aframe-extras.min.js"></script> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
</head> |
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
setopt interactivecomments | |
# The command above allows you to have bash style comments | |
# Create .zshrc file | |
touch ~/.zshrc | |
# Enable git tab for branch completion | |
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc | |
# Install Homebrew |
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
public static void onMove(int pointer, Ray ray) { | |
Pointer p = pointers.get(pointer); | |
if (p == null) { | |
p = new Pointer(); | |
p.id = pointer; | |
pointers.put(pointer, p); | |
} | |
for (UIStage stage : stages) { | |
float px = -1; |
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
/******************************************************************************* | |
* Copyright 2011 See AUTHORS file. | |
* | |
* 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 |
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
// Returns: INTERSECT : 0 | |
// INSIDE : 1 | |
// OUTSIDE : 2 | |
int FrustumAABBIntersect(Plane *planes, Vector &mins, Vector &maxs) { | |
int ret = INSIDE; | |
Vector vmin, vmax; | |
for(int i = 0; i < 6; ++i) { | |
// X axis | |
if(planes[i].normal.x > 0) { |
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
inkscape file.svg --export-type=eps file.eps --export-ignore-filters --export-ps-level=3 |
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
package com.company.jpa; | |
import org.springframework.data.jpa.domain.Specification; | |
import javax.persistence.criteria.Expression; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
public class GenericSpecifications<T> { |
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
sudo dnf remove evolution | |
sudo sed -i "s/^#SystemMaxUse.*/SystemMaxUse=50M/g" /etc/systemd/journald.conf | |
sudo sed -i "s/^#SystemMaxUse.*/SystemMaxUse=50M/g" /etc/systemd/journald.conf |
NewerOlder