This file contains 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
-module(scaling). | |
-export([start_router/0, init_router/0, process_message/1]). | |
-define(MESSAGE_LIMIT, 3). | |
start_router() -> | |
register(scaling, spawn(scaling, init_router, [])). | |
init_router() -> |
This file contains 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:let%20u=window.location.href;if(u.indexOf('grantwinney.com')!==-1&&!(u.endsWith('.com/'))&&u.indexOf('ghost/#/editor')===-1){window.location.href=window.location.protocol+window.location.pathname+'/edit';} |
This file contains 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 csv | |
import urllib2 | |
with open('urls.csv', 'rb') as f: | |
reader = csv.reader(f) | |
with open('urls-output.csv', 'w') as g: | |
writer = csv.writer(g, delimiter=',') | |
for row in reader: | |
url = row[0] | |
try: |
This file contains 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
public static void Main(string[] args) | |
{ | |
var accountId = "1234"; | |
ValidateUser(accountId); | |
var action = GetTransactionType(accountId); | |
var amount = GetTransactionAmount(accountId); | |
ShowTransactionAndBalance(accountId, action, amount); |
This file contains 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
public static void Main() | |
{ | |
// get account details | |
var accountId = "1234"; | |
var name = "Grant"; | |
var balance = 100m; | |
var secretAnswer = "42"; | |
// validate the user in secretive fashion | |
var answer = ""; |
This file contains 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 | |
### check for proper usage | |
if [ $# -ne 1 ]; then | |
echo $0: usage: uuid_for_solution | |
exit 1 | |
fi | |
cd ~ |
This file contains 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
[ | |
{ | |
"enabled": true, | |
"updateUrl": null, | |
"md5Url": null, | |
"url": null, | |
"originalMd5": null, | |
"installDate": 1571792931541, | |
"name": "SE Simplified", | |
"sections": [ |
This file contains 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
@-moz-document url-prefix("https://twitter.com") { | |
/* LEFT COLUMN NAVIGATION */ | |
header[role="banner"], /* HIDE ENTIRE COLUMN */ | |
[aria-label="Twitter"], /* logo */ | |
[data-testid="AppTabBar_Home_Link"], /* home */ | |
[data-testid="AppTabBar_Explore_Link"], /* explore */ | |
[data-testid="AppTabBar_Notifications_Link"], /* notifications */ | |
[data-testid="AppTabBar_DirectMessage_Link"], /* messages */ | |
[aria-label="Bookmarks"], /* bookmarks */ | |
[aria-label="Lists"], /* lists */ |
This file contains 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
var _ac=["\x61\x6a\x5f\x69\x6e\x64\x78\x5f\x74\x61\x63\x74","\x62\x69\x6e\x64","\x64\x72\x69\x76\x65\x72","\x64\x6f\x65\x5f\x63\x6e\x74","\x6d\x6f\x75\x73\x65\x64\x6f\x77\x6e","\x42\x61\x74\x61\x6e\x67","\x63\x6c\x69\x65\x6e\x74\x48\x65\x69\x67\x68\x74","\x65\x6d\x69\x74","\x69\x6e\x64\x65\x78\x4f\x66","\x65\x6e\x52\x65\x61\x64\x44\x6f\x63\x55\x72\x6c","\x50\x61\x6c\x61\x74\x69\x6e\x6f","\x66\x70\x56\x61\x6c\x73\x74\x72","\x6f\x6e\x70\x6f\x69\x6e\x74\x65\x72\x75\x70","\x22","\x64\x6d\x5f\x65\x6e","\x2f\x67\x65\x74\x5f\x70\x61\x72\x61\x6d\x73","\x72\x56\x61\x6c","\x72\x65\x74\x75\x72\x6e\x2f\x2a\x40\x63\x63\x5f\x6f\x6e\x21\x40\x2a\x2f\x21\x31","\x2d\x31\x2c\x32\x2c\x2d\x39\x34\x2c\x2d\x37\x30\x2c","\x68\x74\x74\x70\x3a\x2f\x2f","\x73\x74\x6f\x72\x61\x67\x65","","\x6f\x6e\x6b\x65\x79\x70\x72\x65\x73\x73","\x6e\x61\x76\x69\x67\x61\x74\x6f\x72","\x6d\x6e\x5f\x75\x70\x64\x61\x74\x65\x5f\x63\x68\x61\x6c\x6c\x65\x6e\x67\x65\x5f\x64\x65\x74\x61\x69\x6c\x73","\x6b\x65\x79\x64\x6f\x77\x6e","\x73\x70\x61\x77\x6e","\x62\ |
This file contains 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
-module(utils). | |
-export([concat/2]). | |
%% EXTERNAL | |
concat(Words, string) -> | |
internal_concat(Words); | |
concat(Words, binary) -> | |
list_to_binary(internal_concat(Words)). |
OlderNewer