I hereby claim:
- I am pnowosie on github.
- I am pnowosie (https://keybase.io/pnowosie) on keybase.
- I have a public key whose fingerprint is 7512 0F42 7C38 7DC8 8B7B 574F BCD8 5298 2438 91
To claim this, I am signing this object:
| { | |
| "name": "3sec-pin-generator", | |
| "version": "0.0.0", | |
| "description": "Generating 10 digits pin code based on triplesec scrypt hash function", | |
| "dependencies": { | |
| "triplesec": "^3.0.10", | |
| "colors": "0.6.2" | |
| }, | |
| "devDependencies": {}, | |
| "scripts": { |
| // LINQPad code | |
| // Assumptions: | |
| // Any uppercase letter in class name is made lowercase and (except first) prepend with underscore | |
| // Underscores from table name are removed and letter following them are made uppercase (first is also made upper) | |
| // Class name <-> Table name | |
| // "InvoiceLineItems" "invoice_line_items" | |
| void Main() |
I hereby claim:
To claim this, I am signing this object:
| var fs = require('fs-extra'); | |
| module.exports.Play = function(inputDir, outputDir) { | |
| fs.exists(outputDir, function(exists) { | |
| if (exists) throw new Error('Output directory already exists!'); | |
| fs.mkdir(outputDir, function(err){ | |
| if (err) throw err; |
| public class Lazy<T> | |
| { | |
| private Func<T> _evaluate; | |
| private T _value; | |
| public Lazy(Func<T> evaluate) | |
| { | |
| _evaluate = evaluate; | |
| } |
| select TOP 200 | |
| MD.Id mId | |
| ,MD.Code Metadata | |
| ,L.Name Lang | |
| ,S.Id sId | |
| ,S.LabelCode Snippet | |
| ,T.Text | |
| from [dbo].[BaseTranslation] T |
| // At this point, I'd like to take a moment to speak to you about the Adobe PSD | |
| // format. PSD is not a good format. PSD is not even a bad format. Calling it | |
| // such would be an insult to other bad formats, such as PCX or JPEG. No, PSD | |
| // is an abysmal format. Having worked on this code for several weeks now, my | |
| // hate for PSD has grown to a raging fire that burns with the fierce passion | |
| // of a million suns. | |
| // | |
| // If there are two different ways of doing something, PSD will do both, in | |
| // different places. It will then make up three more ways no sane human would | |
| // think of, and do those too. PSD makes inconsistency an art form. Why, for |
| $('.k-focusable').find('td').each(function(ind,elt) {var t,h,mm; if((t = elt.innerText).match(/^\d+:\d\d$/)) { h = t.split(':')[0], mm = t.split(':')[1]; mm = Math.round((mm/6.0)*10); elt.innerText = h + ',' + (mm<10 ? '0':'') + mm } }) |
| ## Image optimization | |
| ## Dependencies: | |
| ## * optipng http://optipng.sourceforge.net/ | |
| ## * jpegtran http://jpegclub.org/jpegtran/ | |
| # JPEG | |
| $files = ls -Name -Recurse -Include("*.jpg", "*.jpeg") | |
| $i = 0 | |
| foreach ($f in $files) { | |
| echo "Optimizing file: $f" |
| // LinqPad test | |
| void Main() | |
| { | |
| int testNum = 1000, length = 32; | |
| int testRun = 0; | |
| while (testNum-- > 0) | |
| { | |
| string testString = GetRandomString(length); | |
| if (testString.All(c => ((int)c >= 32 && (int)c <= 32+94))) | |
| ++testRun; |