Skip to content

Instantly share code, notes, and snippets.

🦄
Searching for the Unicorn

Lukas Schmierer lschmierer

🦄
Searching for the Unicorn
View GitHub Profile
View setup_mac.sh
/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
@lschmierer
lschmierer / scrape_fb_event_attendants.py
Created Jun 7, 2017
Facebook Event Attendant scraper
View scrape_fb_event_attendants.py
#!/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]
@lschmierer
lschmierer / hide.rs
Last active Aug 29, 2015
Veiled RefCell in Rust
View hide.rs
use std::rc::Rc;
use std::cell::RefCell;
struct Wrapper {
data_cell: RefCell<Data>,
}
struct Data {
num: u8,
}
@lschmierer
lschmierer / dark_fusion.py
Last active Jun 28, 2020 — forked from QuantumCD/Qt 5 Dark Fusion Palette
Qt5 Dark Fusion Palette for Python
View dark_fusion.py
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)
You can’t perform that action at this time.