This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"1st-feature-flag": { | |
"createdAt": 1639043672950, | |
"createdBy": "system@acme.org", | |
"description": "First feature flag", | |
"id": "1st-feature-flag", | |
"ignoreUpdates": false, | |
"lastUpdatedAt": 1639043672950, | |
"lastUpdatedBy": "system@acme.org", | |
"publicFlag": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.attname, | |
pg_catalog.format_type(a.atttypid, a.atttypmod), | |
a.attnotnull | |
FROM pg_attribute a | |
JOIN pg_class t on a.attrelid = t.oid | |
JOIN pg_namespace s on t.relnamespace = s.oid | |
WHERE a.attnum > 0 | |
AND NOT a.attisdropped | |
AND t.relname = 'my_view' | |
AND s.nspname = 'my_schema' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
SEARCHED=$1 | |
if [ -z $SEARCHED ]; then | |
SEARCHED=/api/flights/fares | |
fi | |
echo "Protecting $SEARCHED" | |
echo "Reading:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Counts the number of message each participant has sent and generates a ranking. | |
# Author: Tiago Fernandez | |
import operator, os | |
def main(): | |
input_data = os.path.basename(__file__).replace('.py', '.txt') | |
output_data = count_messages(input_data) | |
generate_report(output_data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://bitbucket.org/agbo/swiftworkshop/src | |
// https://bytebucket.org/agbo/swiftworkshop/raw/d69842f1bb8de5d6addf00c7936e8fda6382ec3a/IntroToSwiftNSSpain.pdf | |
import UIKit | |
(2) | |
///////////////////////////////// | |
// Basic Building blocks | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0; padding: 0 } | |
#map-canvas { height: 100% } | |
.labels { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, re, time | |
import unittest | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from datetime import datetime | |
from itertools import izip | |
from multiprocessing.pool import ThreadPool | |
from threading import Thread | |
from urlparse import parse_qs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# http://stackoverflow.com/a/1916548/75265 | |
def schedule(teams=[]) | |
# odd_size = teams.size % 2 != 0 | |
# teams << -1 if odd_size | |
rounds = (1...teams.size).map do |r| | |
t = teams.dup | |
(0...(teams.size / 2)).map do |_| | |
[t.shift, t.delete_at(-(r % t.size + (r >= t.size * 2 ? 1 : 0)))] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){window.open('http://bradfrostweb.com/demo/ish/?url='+encodeURIComponent(document.URL));})(); |
NewerOlder