Skip to content

Instantly share code, notes, and snippets.

View meetingattendee's full-sized avatar

Pouya Nafisi meetingattendee

  • CALI
View GitHub Profile
@meetingattendee
meetingattendee / OCAPI DATA API settings in BM
Created August 24, 2023 04:16 — forked from JCTucker/OCAPI DATA API settings in BM
OCAPI Demo: Postman and BM files
{
"_v": "21.3",
"clients": [{
"client_id": "<API Client ID from Account Manager>",
"resources": [{
"methods": ["get", "post", "put", "patch", "delete"],
"read_attributes": "(**)",
"write_attributes": "",
"resource_id": "/**"
}]
@meetingattendee
meetingattendee / rgb-colored-echo.sh
Created April 27, 2019 17:43 — forked from amberj/rgb-colored-echo.sh
A bash pretty print script that provides following red/green/blue colored echo functions.
#!/bin/bash
#
## @file rgb-colored-echo.sh
## @author Amber Jain
## @section DESCRIPTION A bash pretty print script which provides red/green/blue colored echo functions
## @section LICENSE ISC
#################
# Documentation #
@meetingattendee
meetingattendee / README.md
Created November 30, 2018 14:58 — forked from Rich-Harris/README.md
Unifying Rollup options

Rollup 0.48 introduces a few changes to the options object, because the current options are confusingly different between the CLI and the options exported by your config file.

Changes to the config file

  • entry is now input
  • sourceMap and sourceMapFile are now sourcemap and sourcemapFile (note casing)
  • moduleName is now name
  • useStrict is now strict

The dest and format options are now grouped together as a single output: { file, format, ... } object. output can also be an array of { file, format, ... } objects, in which case it behaves similarly to the current targets. Other output options — exports, paths and so on — can be added to the output object (though they will fall back to their top-level namesakes, if unspecified).

/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@meetingattendee
meetingattendee / australian-postcodes.sql
Created October 29, 2017 00:35 — forked from randomecho/australian-postcodes.sql
Australian postcodes (with states and suburb names) geocoded with latitude and longitude.
/*
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod
May contain errors where latitude and longitude are off. Use at own non-validated risk.
*/
SET NAMES utf8;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS postcodes_geo;
@meetingattendee
meetingattendee / css-media-queries-cheat-sheet.css
Created August 28, 2017 19:09 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }