Skip to content

Instantly share code, notes, and snippets.

View Pipe-Runner's full-sized avatar
Hello there...

PIPΞ RUNNΞR Pipe-Runner

Hello there...
View GitHub Profile
@Pipe-Runner
Pipe-Runner / tailwind-colors-as-css-variables.md
Created August 16, 2023 23:07 — forked from Merott/tailwind-colors-as-css-variables.md
Expose Tailwind colors as CSS custom properties (variables)

This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root element.

There are a couple of main reasons this is helpful:

  • You can reference all of Tailwind's colors—including any custom ones you define—from handwritten CSS code.
  • You can define all of your colors within the Tailwind configuration, and access the final values programmatically, which isn't possible if you did it the other way around: referencing custom CSS variables (defined in CSS code) from your Tailwind config.

See the Tailwind Plugins for more info on plugins.

@Pipe-Runner
Pipe-Runner / AsyncSearchSimulator.java
Last active January 27, 2023 11:48
Samples and Hints for OS Assignment 1 - NTNU Ålesund
package computation;
public class AsyncSearchSimulator implements Runnable {
protected Socket clientSocket = null;
protected String serverText = null;
public AsyncSearchSimulator(Socket clientSocket, String serverText) {
this.clientSocket = clientSocket;
this.serverText = serverText;
@Pipe-Runner
Pipe-Runner / package.json
Created October 8, 2019 06:29
Update package.json for dev without python
{
"name": "electron-react-boilerplate",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-scripts": "3.2.0"
},
"scripts": {
const electron = require('electron');
const path = require('path');
const url = require('url');
const { app } = electron;
const { BrowserWindow } = electron;
let mainWindow;
function createWindow() {
{
"name": "electron-react-boilerplate",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-scripts": "3.2.0"
},
"scripts": {
@Pipe-Runner
Pipe-Runner / GSoC19-work-product.md
Last active August 24, 2019 15:11
GSoC 2019 Work Product | Aakash S. Mallik | PSLab Desktop | FOSSASIA

Aakash S. Mallik | @AakashMallik | FOSSASIA

Google summer of Code banner

Overview

The PSLab project already had an android application and a PyQt based desktop application. The main problem with the PyQt application was that it was pretty hard to maintain due to poor developer support and it was too complex for everyday users. My proposal was to reimplement it using the ElectronJS framework and simplify the business logic in the code that is used to communicate with the device. I also wanted to make the app user-friendly by making use of modern UI frameworks like ReactJS and material UI. It also provided me an opportunity to explore the possibility of outsourcing thread blocking operations to python which had a well supported and mature scientific computation ecosystem.

Major Areas of My Contributions and Goals Achieved

# cmake version to be used
cmake_minimum_required( VERSION 3.0 )
# project name
project( sample_cmake )
# flags
# files
Project_name
|
|---- CMakeLists.txt
|
|---- include
| |
| |---- Project_name
| |
| |---- public_header(s).h
|
@Pipe-Runner
Pipe-Runner / class_declarations.cpp
Created June 14, 2018 13:15
A set of snippets for the language C++
class Animal{
public:
int legs;
string name;
Animal(string name){
this->name = name;
this->legs = 4;
}
};
@Pipe-Runner
Pipe-Runner / cloudSettings
Last active October 23, 2018 08:43
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-23T08:43:04.858Z","extensionVersion":"v3.2.0"}