SAR files are simple structures that are encrypted with Blowfish with a 32-bit key and optionally compressed with PRS and a 0x95 XOR.
All sar files start with the magic ASCII string sar
and, at position 0x03, either the byte 0x84
or 0x04
.
// Dirty overload the native function | |
var parseInt = function(arg1) { | |
if (arg1 === "Infinity") { | |
return NaN; | |
} | |
if (arg1 === "Infinity+1") { | |
return "Infinity1"; | |
} | |
if (arg1 === "1+1+1") { | |
return "3?"; |
SAR files are simple structures that are encrypted with Blowfish with a 32-bit key and optionally compressed with PRS and a 0x95 XOR.
All sar files start with the magic ASCII string sar
and, at position 0x03, either the byte 0x84
or 0x04
.
Some Time there is a shallow update not allowed issue in your cloned GIT repo.
This means that you have to unshallow your repository. To do so you will need to add your old remote again.
git remote add origin <path-to-old-remote>
After that we use git fetch to fetch the remaining history from the old remote (as suggested in this answer).
git fetch --unshallow origin
And now you should be able to push into your new remote repository.
Index: https://gist.github.com/towerofnix/ca9010add7d91bdbfd828ca829ee38e1
package main | |
import ( | |
"os" | |
"fmt" | |
"os/exec" | |
"io/ioutil" | |
) | |
func main() { |
function Words(...templates) { | |
this.templates = templates | |
} | |
Words.prototype.generate = function() { | |
return this.templates.map(generate).join(' ') | |
} | |
function generate(template) { | |
if(template instanceof Words) | |
return template.generate() |
Index: https://gist.github.com/towerofnix/ca9010add7d91bdbfd828ca829ee38e1
Particularly amazing gemstones in the virtual field of Scratch suggestions. Click on a link to get started! Each link brings you to a thread on the Scratch suggestion forums. These threads explain their suggestions better than most of the other suggestions on Scratch (of which half are duplicates!) so I figured I'd compile a list of the best suggestions here. I'm not saying I particularly like these suggestions but they generally are explained well and have pretty interesting suggestions. (At least, when not flooded by (no) "support"s!)
/* Notes: **READ ALL OF THESE** | |
Original source of the program is here: | |
https://scratch.mit.edu/discuss/post/1868091/ | |
I've slightly modified the code (pretty-printed, renamed a couple variables, | |
etc. - don't forget to read these notes! - but the old code is still intact | |
here. If you're curious about what the original entirely non-modified code | |
was though don't hesitate to open that link. :P |
var what = "/Special:Random"; | |
$.get(what).done(function(res) { | |
try { | |
res = (new DOMParser()).parseFromString(res, "text/html"); | |
window.res = res; | |
what = res.querySelector("#WikiaPageHeader .header-title").textContent.trim(); |
/*\ | |
| Faking JavaScript syntactic sugar | |
| | |
| Feel free to fork this to add more information! | |
| | |
| Remember to utilize ES6 things, because why not? | |
| It's standardized! | |
\_ | |
| Contents: | |
| |