Skip to content

Instantly share code, notes, and snippets.

Avatar
🙅‍♀️
Job hunting

Tamara Temple tamouse

🙅‍♀️
Job hunting
View GitHub Profile
@matheusoliveira
matheusoliveira / json_manipulator.sql
Last active March 12, 2023 21:35
Simple PostgreSQL functions to manipulate json objects. (Note: performance is not a concern for those functions)
View json_manipulator.sql
CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json)
RETURNS json
IMMUTABLE
LANGUAGE sql
AS $$
SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json
FROM (
SELECT * FROM json_each(data)
UNION ALL
SELECT * FROM json_each(insert_data)
@Su-Shee
Su-Shee / gist:5d1a417fa9de19c15477
Last active February 9, 2023 09:55
Falsehoods Programmers Believe About "Women In Tech"
View gist:5d1a417fa9de19c15477

Falsehoods Programmers Believe About "Women In Tech"

  • We have absolutely no idea what we're doing in tech. Please explain the utmost basic things to us.

  • We only do web design. Our whole reason of being in tech is to make things pretty. Consider us the doilies of the industry.

  • We're not laughing about your joke, so we clearly need you explain it to us. In great detail.

  • We're only in tech to find a husband, boyfriend or generally to get laid.

@tamouse
tamouse / contact.md
Created April 10, 2020 16:19
Contact tamouse (Tamara Temple)
View contact.md
@brampersandon
brampersandon / clean-react-native-app.sh
Last active January 7, 2019 15:43
A quick helper util for getting a misbehaving React Native environment back to normal.
View clean-react-native-app.sh
alias clean-rn="watchman watch-del-all && rm -fr $TMPDIR/npm* && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && yarn cache clean && rm -rf ios/build && rm -rf ios/Pods && rm -rf android/.gradle && rm -rf android/.idea && rm -rf android/build && rm -rf android/app/build && rm -rf android/app/app.iml && yarn"
@maxx-coffee
maxx-coffee / TextFormatter.js
Created November 9, 2017 19:10
Dependency injection via javascript
View TextFormatter.js
export default (text) => text;
View why-ayo.txt
As a core member of the team: I believe that node is lacking in what it does to support its community, its governance model
is currently a mess and I don't feel that it is easy for the majority of people to contribute. This did not start and does
not end with whatever has been occurring in node over these past two weeks. These have been my feelings for over two years
now. I have experienced this first hand as a former part of node, as I sat within the now defunct Inclusivity Working Group.
It's time to try something new.
<3
@rklemme
rklemme / pipes.rb
Last active September 9, 2016 14:14
Execute multiple commands connected through pipes either via threads or processes.
View pipes.rb
#!/usr/bin/ruby -w
if ENV['DEBUG']
def debug(message)
$stderr.puts message
end
else
def debug(message)
# nop
end
@marknorgren
marknorgren / angular-2.md
Last active March 28, 2016 22:21
Building Web Apps with Angular 2
@mwlang
mwlang / log.rake
Last active August 29, 2015 14:21
This set of tasks scans a Ruby Logger file and tallies timestamps. It finds first timestamp and last timestamp recorded in the log and prints out start/start times, elapsed time, and the logfile it scanned. Additionally, if you use the Sequel gem and log SQL to the log file, it extracts the SQL, parameterizes those SQLs so we can group 'em and g…
View log.rake
namespace :log do
def timestamp line
values = line.match(/(\d{4})\-(\d{2})\-(\d{2})T(\d{2})\:(\d{2})\:(\d{2}\.\d{6})/).captures
Time.new(*values.map(&:to_f))
end
task :timestamps do
Dir.glob(File.join(log_path, '*.log')).each do |fn|
top = `head -n 2 #{fn}`.split("\n")
top.shift if top[0] =~ /Logfile created/