Skip to content

Instantly share code, notes, and snippets.

@idowu-tobi-damilola
idowu-tobi-damilola / media-query.css
Last active April 24, 2024 12:09 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@kodie
kodie / array_map_assoc.php
Last active April 24, 2024 12:04
Array map function that allows you to change keys as well as values
<?php
// Array map function that allows you to change keys as well as values
// Example: array_map_assoc(function($k, $v) { return array($k => $v); }, $array);
function array_map_assoc(callable $f, array $a) {
return array_merge(...array_map($f, array_keys($a), $a));
}
?>
@cgonzalezdai
cgonzalezdai / como-subir-un-proyecto-local-a-github.md
Last active April 24, 2024 12:03
Como subir un proyecto local a github

Como subir un proyecto local a github.

desde la web de github

Creamos un nuevo repositorio en https://github.com. Le damos nombre, descripción, seleccionamos si va a ser un proyecto publico o privado si es el caso, y dejamos el check de crear README sin marcar. Le damos a crear repositorio y con esto ya tenemos el repositorio donde alojaremos nuestro proyecto.

desde la terminal del equipo donde esta el proyecto que queremos subir a github

Nos vamos a la carpeta del proyecto y ejecutamos estos comandos.

git init

git add .
@lohhans
lohhans / README-PTBR.md
Last active April 24, 2024 12:03 — forked from PurpleBooth/README-Template.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.

/* Numerically solve for the time-dependent Schrodinger equation in 2D,
using the split operator method. To build and run, type:
rustc qm2d_split_op.rs
./qm2d_split_op
This will output a series of bmp images which show each frame of the
simulation.
References:
@leigler
leigler / digitalocean-dokku-kirby.md
Last active April 24, 2024 12:03
set up for digital ocean dokku install for kirby
  • This document references this post with a few updates regarding the git remote set up

Install

  1. set up digital ocean droplet w/ dokku installed
  • add ssh key ssh-keygen -t rsa
  • with proper dns configured w/ url: (first set up the url by following these directions)
  • go to your droplet's IP address and give the app url your hostname
  • add two A records, (@ and *) to direct the url to your IP address (this can be done w/ digital ocean's dns or with the dns managing the domain. For staging, you'll only need to set up one A record pointing towards your subdomain)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 24, 2024 12:01
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active April 24, 2024 12:00
Files for PlayStation BIOS Files NA-EU-JP
@mlconnor
mlconnor / country_date_formats.csv
Created February 22, 2012 20:49
Listing of countries with their preferred date formats, ISO3166 code, ISO629-2
ISO 3166 Country Code ISO639-2 Country Code Country ISO 3166 Country Code ISO639-2 Lang Language Date Format
ALB AL Albania sqi sq Albanian yyyy-MM-dd
ARE AE United Arab Emirates ara ar Arabic dd/MM/yyyy
ARG AR Argentina spa es Spanish dd/MM/yyyy
AUS AU Australia eng en English d/MM/yyyy
AUT AT Austria deu de German dd.MM.yyyy
BEL BE Belgium fra fr French d/MM/yyyy
BEL BE Belgium nld nl Dutch d/MM/yyyy
BGR BG Bulgaria bul bg Bulgarian yyyy-M-d
BHR BH Bahrain ara ar Arabic dd/MM/yyyy
@psybers
psybers / package.json
Created April 6, 2024 02:24
Finds uncategorized transactions in Actual Budget and asks Chat GPT to suggest the category.
{
"dependencies": {
"@actual-app/api": "^6.7.0",
"dotenv": "^16.4.5",
"openai": "^4.33.0"
}
}