Skip to content

Instantly share code, notes, and snippets.

View PandelisZ's full-sized avatar
:shipit:
🔥🔥🔥 Taking working code and making it un-working 🔥🔥🔥🔥

Pandelis Zembashis PandelisZ

:shipit:
🔥🔥🔥 Taking working code and making it un-working 🔥🔥🔥🔥
View GitHub Profile
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
fs.writeFile("./snippets.json", output, function(err) {
if(err) {
return console.log(err);
}
console.log('success');
});
//You can use
var str = JSON.stringify(object)
//to serialize your objects to a JSON string and
var obj = JSON.parse(string)
//To read it back as an object. The string can be written to file. So, for example an object like this:
var p = new Foo();
p.Bar = "Terry"

Keybase proof

I hereby claim:

  • I am pandelisz on github.
  • I am pandelis (https://keybase.io/pandelis) on keybase.
  • I have a public key ASC4qjdNMNdmxHukn8UAE9WuxzhrBQDBPiApPpegwf1OPQo

To claim this, I am signing this object:

# this is a title

and some content [with a link]()

@PandelisZ
PandelisZ / ko.utils.signatures.js
Created July 18, 2017 13:27 — forked from hyle/ko.utils.signatures.js
KnockoutJS utils (ko.utils) signatures
// knockout 2.2.1
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
ko.utils.arrayForEach = function (array, action) { /* .. */ }
ko.utils.arrayGetDistinctValues = function (array) { /* .. */ }
@PandelisZ
PandelisZ / ko.utils.3.4.0.signatures.js
Created July 18, 2017 13:28 — forked from hyle/ko.utils.3.4.0.signatures.js
KnockoutJS 3.4.0 utils (ko.utils) signatures
// knockout 3.4.0
ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ }
ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ }
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
@PandelisZ
PandelisZ / policy.json
Created December 17, 2018 10:31
Read only S3 access
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SubstraktS3SingleBucketReadWrite",
"Effect": "Allow",
"Action": [
"s3:PutAnalyticsConfiguration",
"s3:GetObjectVersionTagging",
"s3:ReplicateObject",
@PandelisZ
PandelisZ / composer-link.sh
Last active January 4, 2019 15:58
Composer link command
@PandelisZ
PandelisZ / .gitlab-ci.yml
Last active May 8, 2019 14:54
autoMergeRequest.sh
job:autoupdate:
image: php:7.3-cli
only:
- schedules
before_script:
# Install composer dependencies
- apt-get update -y >/dev/null && apt-get install -y libpng-dev git zip unzip >/dev/null
- docker-php-ext-install calendar gd >/dev/null
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php >/dev/null