Skip to content

Instantly share code, notes, and snippets.

View M0rtyMerr's full-sized avatar

Anton Nazarov M0rtyMerr

View GitHub Profile
@norcal82
norcal82 / city_names.js
Last active November 7, 2023 23:55
javascript array of major us city names
// javascript, coffeescript, jquery...
var city_names = ["Aberdeen", "Abilene", "Akron", "Albany", "Albuquerque", "Alexandria", "Allentown", "Amarillo", "Anaheim", "Anchorage", "Ann Arbor", "Antioch", "Apple Valley", "Appleton", "Arlington", "Arvada", "Asheville", "Athens", "Atlanta", "Atlantic City", "Augusta", "Aurora", "Austin", "Bakersfield", "Baltimore", "Barnstable", "Baton Rouge", "Beaumont", "Bel Air", "Bellevue", "Berkeley", "Bethlehem", "Billings", "Birmingham", "Bloomington", "Boise", "Boise City", "Bonita Springs", "Boston", "Boulder", "Bradenton", "Bremerton", "Bridgeport", "Brighton", "Brownsville", "Bryan", "Buffalo", "Burbank", "Burlington", "Cambridge", "Canton", "Cape Coral", "Carrollton", "Cary", "Cathedral City", "Cedar Rapids", "Champaign", "Chandler", "Charleston", "Charlotte", "Chattanooga", "Chesapeake", "Chicago", "Chula Vista", "Cincinnati", "Clarke County", "Clarksville", "Clearwater", "Cleveland", "College Station", "Colorado Springs", "Columbia", "Columbus", "Concord", "Coral Spri
@NSEGeorge
NSEGeorge / LaunchTimeMeasurer.c
Last active November 25, 2019 10:06
C function for measuring application launch time. Call it from start or end didFinishLaunchingWithOptions.
#include "LaunchTimeMeasurer.h"
#include <sys/sysctl.h>
#include <sys/unistd.h>
double processUptime() {
struct timeval currentTime; // current time returned by gettimeofday
struct kinfo_proc processInfo; // information about current process returned by sysctl
size_t processInfoSize = sizeof(processInfo); // information's size
int mib[] = { // Management Information Base
CTL_KERN, // "high kernel": proc, limits
@Caramel-Pudding
Caramel-Pudding / gist:940c660314ecf6ab600bd5ce428ccf0e
Last active May 4, 2021 09:44
Interview questions FROM candidate TO company

HR Process /

  • Why is the vacancy open? Is this a new position or has someone previously held it?
  • What's the main problem company is trying to solve by filling this position
  • What are the recruitment steps?
  • What’s the documental employment basis? How do we manage the docs?
  • How do we handle payments? Do I send invoices?

Process /

  • What are the day-to-day processes?
  • How do you plan new tasks? How do you estimate them? What about deadlines management?