Taken from : https://code.tutsplus.com/tutorials/how-to-collaborate-on-github--net-34267
-
Forking Fork the repo on GitHub.com
-
Cloning Clone the repo using the URL in the right sidebar:
git clone git@github.com:jcutrell/jquery.git
if(i==1) | |
return 4; | |
if(i==2) | |
return 4; | |
if(i==3) | |
return 4; | |
if(i==4) | |
return 4; | |
if(i==5) | |
return 4; |
/*** | |
Copyright (c) 2016, Alexander Choporov aka CoolCmd | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDE |
#' @title Geolocate IP Addresses Through ip-api.com | |
#' @description | |
#' \code{geolocate} consumes a vector of IP addresses and geolocates them via | |
#' \href{http://ip-api.com}{ip-api.com}. | |
#' @param ip a character vector of IP addresses. | |
#' @param lang a string to specify an output localisation language. | |
#' Allowed values: en, de, es, pt-BR, fr, ja, zh-CN, ru. | |
#' @param fields a string to specify which fields to return. | |
#' @param delay a logical to whether or not to delay each request by 400ms. | |
#' ip-api.com has a maximum threshold of 150 requests a minute. Disable it for |
Taken from : https://code.tutsplus.com/tutorials/how-to-collaborate-on-github--net-34267
Forking Fork the repo on GitHub.com
Cloning Clone the repo using the URL in the right sidebar:
git clone git@github.com:jcutrell/jquery.git
import cats.data.StateT | |
import cats.implicits._ | |
import scala.collection.JavaConverters._ | |
import scala.concurrent.{Await, Future} | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.duration.Duration | |
import twitter4j._, twitter4j.conf.ConfigurationBuilder | |
object YourTweetsAreTooLong { | |
private type PagingState = (Long, Option[Long]) |
#!/bin/bash | |
docker run --name cdh --hostname "quickstart.cloudera" --privileged=true -t -i -d \ | |
-p 80:80 \ | |
-p 7180:7180 \ | |
-p 8888:8888 \ | |
cloudera/quickstart /usr/bin/docker-quickstart | |
docker exec -ti cdh /home/cloudera/cloudera-manager --express |
#!/bin/bash | |
# Script to export Safari's reading list into a text file, then import this into Pocket or Evernote (or any service with a "email in content" feature). | |
# First take all of Safari's Reading List items and place them in a text file. | |
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g' > readinglistlinksfromsafari.txt | |
# Now loop over each of those URls within that text file and add them to pocket. | |
while IFS= read -r line | |
do | |
echo $line |
#!/usr/bin/env bash
if [ ! -f /tmp/linux ]; then
curl -sS https://www.linux.org.ru/ | egrep -o /tag/[0-9a-z-]+ | sed 's|/tag/||' > /tmp/linux
fi
if [ ! -f /tmp/pron ]; then
curl -sS http://www.xvideos.com/tags | egrep -o /tags/[a-z0-9-]+ | sed 's|/tags/||' > /tmp/pron
fi
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh