Skip to content

Instantly share code, notes, and snippets.

View deomorxsy's full-sized avatar
🐚

deomorxsy

🐚
  • Brazil
  • 11:03 (UTC -03:00)
View GitHub Profile
@philippmuench
philippmuench / Dockerfile
Last active April 10, 2021 22:46
packrat inside docker container
# add this line to your Dockerfile (you also need to install Rbase)
RUN R -e 'install.packages("packrat" , repos="http://cran.us.r-project.org"); packrat::restore()'
@jpf
jpf / thoughts-on-literate-programming.md
Last active June 7, 2021 03:50
Thoughts after 6 months of literate programming

Thoughts after 6 months of literate programming

I wrote my first literate program in November of 2015. Since then, I've been writing literate programs on an almost daily basis. It has been an experience with a sort of enlightenment that I haven't had in a long time. Not only is it a lot of fun to write literate programs, I feel like I have gained a new "super power" of sorts.

Below are my thoughts on my experiences with literate programming so far.

@tompreston
tompreston / twitter-media-upload.py
Last active March 6, 2019 01:27
Upload media with Python Twitter Tools
#!/usr/bin/env python3
from twitter import Twitter, OAuth
from twitter_auth import (CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN,
ACCESS_TOKEN_SECRET)
if __name__ == '__main__':
my_auth = OAuth(token=ACCESS_TOKEN,
token_secret=ACCESS_TOKEN_SECRET,
consumer_key=CONSUMER_KEY,
#!/bin/bash
COMMANDS="Lock\nToggle Screensaver\nExit\nSuspend\nHibernate\nShutdown\nReboot"
COMMAND=`echo -e $COMMANDS | dmenu -i -p "Power:" "$@"`
echo $COMMAND
case $COMMAND in
Lock)
exec xautolock -locknow
;;
"Toggle Screensaver")
@PurpleBooth
PurpleBooth / README-Template.md
Last active October 31, 2025 20:49
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Earnestly
Earnestly / makepkg_overview.rst
Last active October 13, 2025 00:41
A brief overview of the process involved in creating a pacman package.

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active October 30, 2025 08:06
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@davidfowl
davidfowl / dotnetlayout.md
Last active November 1, 2025 05:50
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@john2x
john2x / 00_destructuring.md
Last active September 24, 2025 00:52
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

@ericdouglas
ericdouglas / 05.md
Last active April 21, 2022 18:29
Dicas para iniciantes - Pesquisa
Deixe algumas dicas para quem está iniciando!
Estudar e Praticar bastante, é o essencial
Estude bastante.
No início é assim mesmo. Depois vc vai se acostumando
estudar...
Estudar diariamente, comparecer a eventos e encontros e não ter medo de dizer que não sabe resolver determinado problema para mascarar deficiencias
Hoje em dia não, mas quando comecei tive dificuldades em saber que tipo de empresa contratava profissionais web. Enviava curriculos em fábricas, empresas com nomes grandes, pois achava que teria um setor de TI onde eu poderia trabalhar. Acredito que o melhor lugar para quem está iniciando são agências, onde ele terá contato com vários tipos de profissionais e poderá pegar uma boa experiência. Também é importante conhecer pessoas, ainda que não pessoalmente, mas sempre participar de grupos e comunidades open source para ficar mais inteirado das tecnologias e aprender mais. Se eu tivesse conhecido comunidades open source antes, com certeza poderia estar em um nível muito mais ava