祭っぽいので私も書いてみることにした!お手軽に gist で。
コンテキスト:https://togetter.com/li/1331865
と書き出したはいいが、私が受けたときは本も情報もあまりなく、かつ競プロ的なものの存在も知らなかったので、とりあえず家にあったアルゴリズムの本を2回くらい読み直した。そして受かった。最初っから情報があまりない方のパターンで申し訳ない 😄
#!/bin/bash | |
EXTENSIONSDIR="/usr/lib/firefox-addons/extensions" | |
TMP="/tmp/firefox-extension-install-temp" | |
[ x"$1" == "x" ] || [ ! -f $1 ] && echo "Specify valid .xpi file as argument." && exit 1 | |
sudo rm -rf $TMP 2>/dev/null | |
mkdir -p "$TMP" | |
trap "sudo rm -rf $TMP 2>/dev/null" 1 2 3 15 |
// For more information about available commands, look at the commands/standard.json file in the game's assets. | |
{ | |
"body": { | |
"input": {}, // Command inputs go here | |
"origin": { | |
"type": "player" // Where the command originates from | |
}, | |
"name": "name-of-command", // Command name goes here (i.e. for /say, enter "say") | |
"version": 1, |
%% Simple web server. | |
-module(sws). | |
-author('Steve Vinoski <[email protected]>'). | |
-export([start/1, start/2]). | |
%% start/1 takes a handler function and starts the web server on port 8000. | |
%% start/2 takes a handler function and a port number. The handler function | |
%% takes two arguments: a TCP socket and request data. The request data is | |
%% a property list indicating the invoked HTTP method, the target URI, the |
祭っぽいので私も書いてみることにした!お手軽に gist で。
コンテキスト:https://togetter.com/li/1331865
と書き出したはいいが、私が受けたときは本も情報もあまりなく、かつ競プロ的なものの存在も知らなかったので、とりあえず家にあったアルゴリズムの本を2回くらい読み直した。そして受かった。最初っから情報があまりない方のパターンで申し訳ない 😄
route53domains:RegisterDomain | |
route53domains:RenewDomain | |
route53domains:TransferDomain | |
ec2:ModifyReservedInstances | |
ec2:PurchaseHostReservation | |
ec2:PurchaseReservedInstancesOffering | |
ec2:PurchaseScheduledInstances | |
rds:PurchaseReservedDBInstancesOffering | |
dynamodb:PurchaseReservedCapacityOfferings | |
s3:PutObjectRetention |
Here be some of my notes on how to plan your CS career (specifically NUS).
First things first, I encourage you to have your own module plan (say, in a Google Sheets). You can start with the suggested module plan, but they are quite generic and might not suit your personal goals (e.g. some advanced modules you'd like to take have prerequisites that are offered in odd semesters only).
Having your own module plan will also make you easier to include other non-academic activities too.
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results |
Many different applications claim to support regular expressions. But what does that even mean?
Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.
The information here is just copied from: http://regular-expressions.mobi/refflavors.html
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |