This file contains hidden or 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
// @ts-check | |
const fs = require('fs') | |
const path = require('path') | |
const express = require('express') | |
async function createServer () { | |
const resolve = (p) => path.resolve(__dirname, p) | |
const app = express() |
This file contains hidden or 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
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install fish shell | |
brew install fish | |
cat /etc/shells|grep /usr/local/bin/fish || sudo sh -c 'echo "/usr/local/bin/fish" >> /etc/shells' | |
chsh -s /usr/local/bin/fish | |
# install Google Chrome | |
brew cask install google-chrome |
This file contains hidden or 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
#!/usr/bin/env python | |
import sys | |
import json | |
import requests | |
# Usage | |
# ./scrape_fb_events_attendants.py event_id access_token | tr "}" "\n" | grep "Name to Search" | |
# access_token: https://developers.facebook.com/tools/explorer/ | |
def main(): | |
event_id = sys.argv[1] |
This file contains hidden or 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
use std::rc::Rc; | |
use std::cell::RefCell; | |
struct Wrapper { | |
data_cell: RefCell<Data>, | |
} | |
struct Data { | |
num: u8, | |
} | |
This file contains hidden or 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
qApp.setStyle("Fusion") | |
dark_palette = QPalette() | |
dark_palette.setColor(QPalette.Window, QColor(53, 53, 53)) | |
dark_palette.setColor(QPalette.WindowText, Qt.white) | |
dark_palette.setColor(QPalette.Base, QColor(25, 25, 25)) | |
dark_palette.setColor(QPalette.AlternateBase, QColor(53, 53, 53)) | |
dark_palette.setColor(QPalette.ToolTipBase, Qt.white) | |
dark_palette.setColor(QPalette.ToolTipText, Qt.white) |