Skip to content

Instantly share code, notes, and snippets.

@ayhid
ayhid / gist:75b3a344cab113df7689442e36b48f67
Created November 8, 2021 10:34
short_movies_to_scrap.json
{
"title": {
"type": "string",
},
"originalTitle": {
"type": "string",
},
"releaseYear": {
"type": "integer",
},
@ayhid
ayhid / cloudSettings
Last active November 20, 2020 10:16
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-20T10:16:26.630Z","extensionVersion":"v3.4.3"}
@ayhid
ayhid / DatatableContentsWithPagination.jsx
Last active August 14, 2017 11:00
DatatableContentsWithPagination
import React from 'react';
import ReactPaginate from 'react-paginate';
import {Components, getRawComponent, Utils} from 'meteor/vulcan:core';
export default class DatatableContentsWithPagination extends React.Component {
constructor(props) {
// super(props);
this.state = {
selected: 0,
}
@ayhid
ayhid / polyline_decoder.js
Created September 5, 2016 14:33 — forked from ismaels/polyline_decoder.js
Javascript function to decode google maps api polyline
// source: http://doublespringlabs.blogspot.com.br/2012/11/decoding-polylines-from-google-maps.html
function decode(encoded){
// array that holds the points
var points=[ ]
var index = 0, len = encoded.length;
var lat = 0, lng = 0;
while (index < len) {
var b, shift = 0, result = 0;
@ayhid
ayhid / release.sh
Created August 23, 2016 13:35 — forked from jrbenito/release.sh
Bash script to automate the Git Flow tag/release process
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# v1.0.0, v1.5.2, etc.
versionLabel=v$1
# establish branch and tag name variables
devBranch=develop