Skip to content

Instantly share code, notes, and snippets.

View joelhandwell's full-sized avatar

Joel Handwell joelhandwell

View GitHub Profile
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active April 21, 2025 21:09
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@jasimmk
jasimmk / insert_50k_odoo_customer.py
Last active October 23, 2019 13:50
Helps us create 50k customers in odoo; Install fake factory at first. pip install fake-factory
#!/usr/bin/env python
# Install fake factory at first. Helps us create 50k customers in odoo
# pip install fake-factory
# Documentation for odoo is listed here
# https://www.odoo.com/documentation/9.0/api_integration.html#calling-methods
# MIT License
# Copyright (c) 2016 Jasim Muhammed
@ibaca
ibaca / RxJavaJacksonSerializers.java
Last active May 10, 2018 11:47
Simple RxJava (Observable and Single) jackson serialiers.
package com.intendia.igestion.server.resource;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.BeanDescription;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializationConfig;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper;
@bblanchon
bblanchon / settings.json
Created February 9, 2016 10:28
Sublime Text: Restore Quick Switch Project shortcut
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }
@tyler-ball
tyler-ball / gist:f7c16e814265f34260e9
Last active March 14, 2016 23:15
Test Kitchen Shared Examples

Create the following folder structure in your cookbook:

test
└── integrationq
    ├── helpers
    │   ├── serverspec
    │   │   ├── shared_serverspec_tests
    │   │   │   └── shared_tests2.rb
    │   │   └── spec_helper.rb
@nicolewhite
nicolewhite / userDefineLang_Cypher.xml
Last active June 15, 2022 17:17
A Cypher syntax highlighter for Notepad ++.
<NotepadPlus>
<UserLang name="Cypher" ext="cypher" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03// 04</Keywords>
<Keywords name="Operators1">( ) , = :</Keywords>
<Keywords name="Folders in comment, open">CASE</Keywords>
@msurguy
msurguy / list.md
Last active January 26, 2018 15:16
List of CMSs built with Laravel (stable and in dev)
@jkeiser
jkeiser / gist:8790315
Last active May 4, 2017 18:36
in_parallel and in_serial

Parallelization in Chef Recipes

Chef presently runs the resources in a recipe serially, one after the next. In this proposal, user-selected groups of resources will run their actions in parallel.

MVP (Minimum Viable Product) Features

in_parallel

To run a group of resources in parallel, you write it this way:

@simonewebdesign
simonewebdesign / install_sublime_text.sh
Last active March 11, 2024 12:23
Install Sublime Text 3 on Linux via POSIX shell script - http://simonewebdesign.it/install-sublime-text-3-on-linux/
#!/bin/sh
# Sublime Text 3 Install (last update: Monday 13 March 2017)
#
# No need to download this script, just run it on your terminal:
#
# curl -L git.io/sublimetext | sh
# Detect the architecture
@virgilwashere
virgilwashere / msiexec
Created September 28, 2013 14:14
msiexec command line options
Msiexec.exe /qb- /l*vx %LogPath%\<file>.log REBOOT=ReallySuppress UILevel=67 ALLUSERS=2 /i <File>.msi