From Elm Slack
For example:
type ExtractFields
contract EtherStore { | |
uint256 public withdrawalLimit = 1 ether; | |
mapping(address => uint256) public lastWithdrawTime; | |
mapping(address => uint256) public balances; | |
function depositFunds() public payable { | |
balances[msg.sender] += msg.value; | |
} | |
function withdrawFunds (uint256 _weiToWithdraw) public { |
Set WshShell = CreateObject("WScript.Shell") | |
Key = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" | |
DigitalID = WshShell.RegRead(key & "DigitalProductId") | |
ProductName = "Product Name: " & WshShell.RegRead(Key & "ProductName") & vbNewLine | |
ProductID = "Product ID: " & WshShell.RegRead(Key & "ProductID") & vbNewLine | |
ProductKey = "Installed Key: " & ConvertToKey(DigitalID) | |
ProductID = ProductName & ProductID & ProductKey | |
If vbYes = MsgBox(ProductId & vblf & vblf & "Save to a file?", vbYesNo + vbQuestion, "Windows Key Information") then | |
Save ProductID | |
End if |
#!/bin/sh | |
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
arch=$(dpkg --print-architecture) | |
echo "Detected architecture: $arch" | |
case "$arch" in |
Hello software developers,
Please check your code to ensure you're not making one of the following mistakes related to cryptography.
"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.
And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)
Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.
Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
sed ' | |
s/^>// | |
t | |
s/^ *$// | |
t | |
s/^/-- / | |
' in.lhs > out.hs |
# Generator for valid Swedish personnummer: http://en.wikipedia.org/wiki/Personal_identity_number_(Sweden) | |
# By Henrik Nyh <http://henrik.nyh.se> 2009-01-29 under the MIT license. | |
require 'date' | |
module Personnummer | |
def self.generate(date=nil, serial=nil) | |
date ||= Date.new(1900+rand(100), 1+rand(12), 1+rand(28)) | |
serial = serial ? serial.to_s : format("%03d", 1+rand(999)) # 001-999 |