Skip to content

Instantly share code, notes, and snippets.

@Saw-mon-and-Natalie
Saw-mon-and-Natalie / canada.json
Last active August 6, 2018 04:22
Topojson of Canada/Canadian Provinces
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / canadian-campus-and-community-stations.json
Last active August 7, 2018 05:07
Canadian Campus & Community Station Data
{"stations":
[
{
"type": "Feature",
"properties": {"call_sign": "CiTR", "freq": 101.9, "erp": 1800},
"geometry": {"type": "Point", "coordinates": [[-123.24907,49.269627]]}
},
{
"type": "Feature",
"properties": {"call_sign": "CJSW", "freq": 90.9, "erp": 18000},
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / sociology-history-guides.md
Last active January 16, 2022 16:24
Get your own Sociology & History Degree Online

Sociology

  • classical and contemporary sociological theories
  • logic & reasoning of sociological thinking
  • quantitative methods

African and African American Studies; Anthropology; East Asian Studies; Economics; Government; History; History of Science; Psychology; Social Studies; Studies of Women, Gender, and Sexuality.

Online courses

var cnsl = true;
var win = this;
var ajax = win["XMLHttpRequest"];
function start() {
var cookie_name = "app_" + profile_id;
var cookie_time = 40;
if (!getCookie(cookie_name) || parseInt(getCookie(cookie_name)) < Date.now() - 60 * 1000 * cookie_time) {
createCookie(cookie_name, Date.now(), 1);
config = {};
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / create_actual_page_with_checks.json
Last active May 1, 2019 07:54
Checking page name rules for Facebook pages. Testing if all lowercase is allowed.
{
"__ar": 1,
"payload": {
"page_id": null,
"error": {
"name": null,
"category": null,
"nameDetailed": {
"__html": "The name &quot;test&quot; is invalid. We have suggested &quot;Test&quot;. \u003Ca href=\"/help/262981810477512\" target=\"_blank\">Learn more.\u003C/a>"
}
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / list
Created May 1, 2019 23:47 — forked from RafalFilipek/list
Facebook modules
facebook.com => console => Obect.keys(require.__debug.modules).join('\n')
module
exports
define
global
require
requireDynamic
requireLazy
requireWeak
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / instagram_modules_dependency_maps.json
Created May 19, 2019 20:32
Instagram Modules/React Components Dependency Maps
{
"0" : [1,2,3,4,5,6,7,8,9],
"1" : [10],
"10" : [11],
"10027008" : [10027009,3,10027010],
"10027009" : [9568278],
"10027010" : [9568261,9568345,9568276,10027011,3,10027012,10027013,10027014,9,10027015,9568404,10027016,10027017,6,5],
"10027011" : [],
"10027012" : [3,10027018,10027019,10027020,3211369,10027021,10027022,10027023,10027024,10027025,10027026,10027027,10027028,10027029,10027030,10027031,10027032,10027033,9896112,9568276,10027034,9896024],
"10027013" : [10027010,9896024,9568264,3,10027094,10027095,9568325,9568260,10027034,9568276,10027096,9896112,5],
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / automattician_challenge_hints.md
Last active May 23, 2019 04:35
Automattician / WordPress Job Application Challenges

Map Challenge

Bonus points if you can guess which city each color represents on the map above and tell us the methodology you used to figure it out.

User Coordinates / Server Lookup get a list of user coordinates and the WP servers they are connected to.

https://ac-map.automattic.com/?g=wpcom&cc=&callback=jsonpcallback
https://ac-map.automattic.com/?g=[SERVICE]&cc=[COUNTRY_CODE]&callback=[CALLBACK_FUNCTION]
@Saw-mon-and-Natalie
Saw-mon-and-Natalie / instagram-regex.md
Last active June 14, 2019 19:41
Instagram Regular Expressions for allowed hashtags and mentions / usernames

Regular expressions for allowed hashtags and usernames on Instagram.

HASH_CHARS = "[#\uFF03]"
MENTION_MARKER = "([@@])"

default = /(^|[^a-zA-Z0-9_!#$%&*@])([@])([a-zA-Z0-9_]+(?:\.[a-zA-Z0-9_]+)*)/g

Allowed usernames on instagram can only have the characters a-z, A-Z, digits 0-9, _ (underscore)

@Saw-mon-and-Natalie
Saw-mon-and-Natalie / adding_vbox_guest_additions.md
Created July 2, 2019 21:09
Adding Virtual Box Guest Additions to CentOS 7 to access shared folders from host OS to guest OS

Virtual Box Manager > CentOS > Settings >

  • Inside Storage make sure that the VBoxGuestEditions.iso is loaded on the optical drive
  • Inside Shared Folders configure your shared folder structure from the host OS to the guest OS
mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom

# Red Hat Package Manager
# rpm --upgrade --hash --verbose PACKAGE_NAME
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm