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
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { | |
/******/ return installedModules[moduleId].exports; |
This file has been truncated, but you can view the full file.
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
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { | |
/******/ return installedModules[moduleId].exports; |
This file has been truncated, but you can view the full file.
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
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { | |
/******/ return installedModules[moduleId].exports; |
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
from z3 import * | |
s = Solver() | |
thesum = 15 | |
square = [[Int('x[{0}][{1}]'.format(i,j)) for j in range(3)] for i in range(3)] | |
# Each cell must be an int between 1 and 9 | |
s.add([And(square[i][j] >= 1, square[i][j] <= 9) for i in range(3) for j in range(3)]) |
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 json | |
from wordfreq import word_frequency | |
# Source: https://github.com/AllenDowney/ThinkPython2/blob/master/code/pronounce.py | |
def read_dictionary(filename='c06d'): | |
"""Reads from a file and builds a dictionary that maps from | |
each word to a string that describes its primary pronunciation. | |
Secondary pronunciations are added to the dictionary with | |
a number, in parentheses, at the end of the key, so the | |
key for the second pronunciation of "abdominal" is "abdominal(2)". |
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
require('@formatjs/intl-datetimeformat/polyfill-force'); | |
require('@formatjs/intl-datetimeformat/locale-data/en'); | |
require('@formatjs/intl-datetimeformat/locale-data/en-MY'); | |
require('@formatjs/intl-datetimeformat/add-all-tz'); | |
var date = new Date(Date.UTC(2020, 1, 1, 10, 10, 10, 0)); | |
var format = new Intl.DateTimeFormat('en-MY', { | |
year: 'numeric', | |
month: 'short', | |
day: '2-digit', |
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
from collections import namedtuple | |
from datetime import date | |
import re | |
class InvalidMykadNumber(Exception): | |
def __init__(self, value): | |
self.value = value | |
def __str__(self): | |
return repr(self.value) |
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
f8 | |
16 04 013fb82257f676 | |
^ ^ ^ | |
version packetid imei | |
? time mask? SYS GPS COT ADC DTT | |
00 42 01 1e 83 c9 7b 00 3b 11 03 47 37 39 15 56 31 2e 31 31 26 56 31 2e 30 2e 32 13 00 3f 46 00 2f 74 22 06 0e db c0 00 00 00 00 00 48 00 db 08 03 60 84 a8 13 08 ce d3 04 03 33 11 78 06 03 02 00 02 41 00 | |
00 42 01 1e 83 c9 85 00 3b 11 03 47 37 39 15 56 31 2e 31 31 26 56 31 2e 30 2e 32 13 00 3f 46 00 2f 74 22 06 0e db c0 00 00 00 00 00 48 00 db 08 03 60 84 a8 13 08 ce d3 04 03 32 11 78 06 03 02 00 02 41 00 |
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
<?php | |
ini_set('memory_limit', '-1'); | |
$n = 1000000; | |
class A {} | |
class B {} | |
class C {} | |
class D {} |
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
#include <cstdio> | |
int main() | |
{ | |
printf("Hello, world!\n"); | |
return 0; | |
} |
NewerOlder