Skip to content

Instantly share code, notes, and snippets.

/*
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
const conntededTrafficEvents = [
{
path: [
[
8.664869900000001,
52.057082
],
[
8.6657917,
52.05697970000001
{
"name": "app-angular",
"version": "0.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@angular-devkit/architect": {
"version": "0.13.8",
"resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.13.8.tgz",
"integrity": "sha512-gxUs5rhnP576T8ZclKqxlspiChrqRtqaJo54wqNVFvYKEjRZKyMa+1AK6p0oD9zcIToEkcjknj3BbtQa27lLHg==",
var tmp = [];
for(var i=0; i< data.length;i++){
if(tmp.indexOf(data[i].category) == -1){
tmp.push(data[i].category);
}
}
console.log('this is my result');
console.log(tmp);
#!/usr/bin/env perl
use 5.24.0;
use warnings;
use Term::ANSIColor;
chomp( my @branches
= qx/git show -s --pretty='%cn|%ci %D' \$(git rev-parse --branches --remotes)/
);
my %branches_for;
for(var i = 0 ; i < $scope.data.filteredLinesArray.length ; i++){
if(!($scope.data.filteredLinesArray[i].currentChanges.length > 0)){
$scope.data.filteredLinesArray.splice(i,1);
//reset index else we miss elements of the array since we use splice to removed an element
i = -1;
}
}
<VirtualHost *:80>
</VirtualHost>
@Anzumana
Anzumana / Incr.vim
Last active January 13, 2016 15:13
let g:incr = 1
let g:incr2 = 1
fu! Incr()
let g:incr = g:incr - 1
return g:incr
endfu
fu! Incr2()
let g:incr2 = g:incr2 - 1
@Anzumana
Anzumana / grab links.bookmarklet
Created December 27, 2015 12:53 — forked from ttscoff/grab links.bookmarklet
Create a bookmark and paste the code from `grab links.bookmarklet` into the url. Trigger it on a page containing links you want to save and then click the section of the page containing the links. A Markdown list of all links will be generated, and clicking the resulting list will select all for copying.