Giter Club home page Giter Club logo

gethub's Introduction

gethub

Overview

Build Status

gethub helps you keep all of your git repositories that have GitHub remotes up to date.

Installation

You can download a binary, deb or exe, depending on your platform.

To determine your platform:

uname -sm

On Darwin, you can copy the binary to your bin:

cp ~/path/to/gethub /usr/local/bin/

Or, if you have Go installed:

go install github.com/pearkes/gethub

Getting Started

$ gethub authorize

This asks you where you want to clone your repositories as well as creating an OAuth token for future GitHub requests.

The next time you run a gethub, all of your new repositories will be cloned and your existing repositories will be fetched.

It's useful if you have a lot of repos and may not have an internet connection.

Never leave home without running gethub.

Directory Structure

It's opinionated about how you organize your repositories.

├── pearkes
│   ├── gethub
│   ├── tugboat
│   └── jack.ly
├── mitchellh
│   └── vagrant
├── amadeus
│   └── html7
├── someorg
│   └── bigproject
└── someotherorg
    └── biggerproject

Basically, your repositories will be name-spaced according to who the owner is on GitHub.

Behind the Curtain

$ gethub
  1. Checks to see if the necessary requirements for gethub exist, like it's ~/.gethubconfig file.
  2. Makes sure the path to your repositories looks ok.
  3. Clones any repositories that are missing.
  4. Runs git fetch in repositories that exist.

Configuration

Configuration is stored in a .gethubconfig file in your home directory. (~/.gethubconfig)

Ignored Repositories

Sometimes you don't want to retrieve that gigantic project that someone committed .mov files to.

[ignores]
repo: icloud, facebook, pearkes/bootstrap
owner: adobe

Contributing

Check out the contributing guide.

gethub's People

Contributors

aliou avatar charliedowler avatar geetarista avatar mongey avatar mtchavez avatar pearkes avatar vinc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gethub's Issues

Installation

Because some folks at #gitmerge might want to try get, this is a temporary issue for downloading compiled binaries.

Version 0.0.2:

  • OS X: darwin_amd64 (SHA1: e092f5aff28e01ab133ee1fb87c8d6ad51ed7e0e)

Edit: Please see comments below for newer versions

You can also compile the binary in your environment.

Overall, get isn't quite ready for primetime:

  • Not enough tests (just what's in #4 right now), no continuous integration 👎
  • A few pretty serious bugs, like #5 👎
  • Lack of proper binary distribution 👎

It still works, so feel free to use it. All bug reports and contributions are encouraged!

StaggerredRecyclerAdapter

Hi
I have issue in my code i need help on below code : (img)
package com.abdbarham.wallpaperpro02;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageSwitcher;
import android.widget.ImageView;

import java.util.List;

public class StaggerredRecyclerAdapter extends RecyclerView.Adapter<StaggerredRecyclerAdapter.ImageViewHolder> {

Context mContext;
List<row> mdata;


public StaggerredRecyclerAdapter(Context mContext, List<row> mdata) {
    this.mContext = mContext;
    this.mdata = mdata;
}

@NonNull
@Override
public ImageViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {

    View view = LayoutInflater.from(mContext).inflate(R.layout.row_item, viewGroup, false);

    return new ImageViewHolder(view);
}

@Override
public void onBindViewHolder(@NonNull ImageViewHolder imageViewHoder, int i) {

    // bind image here
    ImageViewHolder.img.setImageResource(mdata.get(i).getImg());

}

@Override
public int getItemCount() {
    return mdata.size();
}


public class ImageViewHolder extends RecyclerView.ViewHolder {

    ImageView img;




public ImageViewHolder(@NonNull View itemView) {
    super(itemView);
    img = itemView.findViewById(R.id.row_img);




}

}

}

Too many open files

Once you have a certain number of repositories you may need to raise your ulimit.

ulimit -S -n 2048 # or whatever number

More then one ignore is broken

It appears listing more then one owner in your .getconfig doesn't work. The first one get's ignored, but the proceeding owners do not.

This doesn't work:

[ignores]
repo:
owner: mitchellh, pearkes

Probably the same for repos.

Error while authorizing

I've been trying to use gethub but I keep running into this error when authorizing:

Post https://api.github.com/authorizations: x509: failed to load system roots and no roots provided
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xa code=0x2 addr=0x20 pc=0x41591]

The full error stacktrace is here.

Running go env returns

GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/alioudiallo/.go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
TERM="dumb"
CC="clang"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fno-common"
CXX="clang++"
CGO_ENABLED="1"

Not sure if this is relevant, but I also have two factor auth enabled on GitHub.

Shaman-Minecraft

ml>

<title>Test</title>
<header>
    <hr />
    <nav>Навигация</nav>
    <hr />
</header>

<main>
    <aside>Боковая панель</aside>
    <section>Секция контента</section>
    <div>Контейнер</div>
    <div>Много-<span>много-много разного</span> текста</div>

    <div>
        <hr />
        <h1>Какой-то заголовок</h1>
        <h2>Какой-то заголовок</h2>
        <h3>Какой-то заголовок</h3>
        <h4>Какой-то заголовок</h4>
        <h5>Какой-то заголовок</h5>
        <h6>Какой-то заголовок</h6>

        <p>Параграф</p>
        <p><b>Жирное начертание</b></p>
        <p><i>Курсив</i></p>
        <p><em>Курсив</em></p>

        <hr />

        <p><a href="https://github.com/Kurt-Hiuz">Ссылка на мой гитхаб</a></p>

        <img src="https://avatars.githubusercontent.com/u/49841996?v=4" alt="Аватарка">
        <br /> <!-- Перенос строки/элемента -->
        <audio controls src=""></audio><br />
        <video controls>
            <source src="" />
            <source src="" />
        </video>

        <hr />
    </div>

    <div>
        <ul>
            <li>Строка 1</li>
            <li>Строка 2</li>
            <li>Строка 3</li>
            <ul>
                <li>Строка 1</li>
                <li>Строка 2</li>
                <li>Строка 3</li>
            </ul>
        </ul>

        <ol>
            <li>Строка 1</li>
            <li>Строка 2</li>
            <li>Строка 3</li>
            <ol>
                <li>Строка 1</li>
                <li>Строка 2</li>
                <li>Строка 3</li>
            </ol>
        </ol>
        <hr />
    </div>

    <div>
        <p>Таблица</p>
        <table border="1px">
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
            </tr>
            <tr>
                <td>4</td>
                <td>5</td>
                <td>6</td>
            </tr>
            <tr>
                <td>7</td>
                <td>8</td>
                <td>9</td>
            </tr>
        </table>
        <hr />
    </div>
</main>

<footer>
    Подвал
</footer>

how the hell i can fix this sfml c++ touch

#include <SFML/Graphics.hpp>
#include
#include
using namespace std;
int main()
{

sf::RenderWindow window(sf::VideoMode (600,900),"w");
ofstream file("file.txt");

while(window.isOpen())
{
	
sf::Event event;

while(window.pollEvent(event))
{
	switch(event.type)
	{
	 case sf::Event::Closed:
	 window.close();
	 break;

case sf::Event::TouchBegan:
file<<"Touch working";

break;
	}
}

window.clear();
window.display();
}

}

Handle Bad Paths

Right now, if you manually change the path in your ~/.getconfig to something that doesn't exist, we just do this:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x3c0d]

goroutine 1 [running]:
main.checkPath(0xf840064e87, 0x28)
    /Users/jack/code/golang/src/github.com/pearkes/get/configuration.go:116 +0x107
main.sequence_checks(0xf840064e87, 0x28, 0xf840066e26, 0x16, 0xf840066eaa, ...)
    /Users/jack/code/golang/src/github.com/pearkes/get/sequence.go:102 +0x118
main.main()
    /Users/jack/code/golang/src/github.com/pearkes/get/main.go:48 +0x3a6

goroutine 2 [syscall]:
created by runtime.main
    /usr/local/go/src/pkg/runtime/proc.c:221

Should just refactor how we do checkPath, as that logic is all screwy.

Cart to checkout via email(php)

Good day,

I am struggling with setting up this client's checkout.

This client wants to have all of the information in his cart sent to an email address instead of checking out with paypal. The client will get back to his clients and send them eft details and organize delivery of the stock that has been ordered from their side. I have attached all of my code in an zip folder below regarding the cart and checkout pages. I simply want to take all of the information in the cart page, displayed it in text format so it can be sent on to the client.

PS I am still very new at php, prefer nodejs but I am forced to use php due to my hosting company at this time.

cart and checkout.zip

Deploying to specific function says successful, but files not updated

When I deploy my function give me that :
=== Deploying to 'myproject-9656e'...

i deploying functions
Running command: npm --prefix "%RESOURCE_DIR%" run lint

functions@ lint C:\Users\Mohammed\myapp\functions
eslint .

  • functions: Finished running predeploy script.
    i functions: ensuring necessary APIs are enabled...

  • functions: all necessary APIs are enabled
    i functions: preparing functions directory for uploading...

  • Deploy complete!

Please note that it can take up to 30 seconds for your updated functions to propagate.
Project Console: https://console.firebase.google.com/project/myproject-9656e/overview

But when i go to firebaes not found any function

how to shoot on direction of ship asteroids sfml

#include <SFML/Graphics.hpp>
#include
#include
#include
#include <SFML/Audio.hpp>
#include
#include

using namespace std;

float d = 0.017453f;

float dd = 0.017453f;
int main()
{
sf::Font font;
if (!font.loadFromFile("/system/fonts/Roboto-Regular.ttf"))
return EXIT_FAILURE;

int wx=1080,wy=2340;
sf::RenderWindow app(sf::VideoMode(wx,wy),"my app");

float x=500,y=300;
float xx=xx,yy=y;
float dy=0,dx=0,angle=0;
float dyy=0,dxx=0,anglee=0;
bool go=false;
int l=0;
//////// the Ship
sf::CircleShape ship(50,3);
ship.setOutlineThickness(5);
ship.setFillColor(sf::Color(0,0,0));
ship.setScale(1,1.4);
ship.setOrigin(25,25);
//////The buttons
sf::CircleShape but(50,3);
but.setScale(1,1.4);
but.setFillColor(sf::Color(200,200,0));
vector<sf::CircleShape >butt(5);
for(int i=0;i<5;i++)
{
butt[i]=but;
butt[0].setPosition(200,100);
butt[1].setPosition(150,350);
butt[1].rotate(45);
butt[2].setPosition(200,2000);
butt[2].rotate(-90);
}
/////

//////////the fire

sf::CircleShape f(10);

vector<sf::CircleShape >fire;
fire.push_back(sf::CircleShape (f));

while(app.isOpen())
{
sf::Event event;
while(app.pollEvent(event))
{
if(event.type == sf::Event::Closed)
app.close();
}
butt[3].setPosition(1000,500);
butt[4].setPosition(1000,700);

for(int i=0;i<2;i++)
if (event.type == sf::Event::TouchMoved)
{

sf::Vector2i touchpos = sf::Touch::getPosition(0);
fire.push_back(sf::CircleShape (f));

f.setPosition(ship.getPosition().x,ship.getPosition().y);
l+=1;
}

xx+=sin(angle)*20;
yy+=cos(angle)*20;
for(int j=0;j<fire.size();j+=1)
{

// fire[j].setPosition(xx,yy);
anglee=sin(angle);
fire[j].move(anglee*20,cos(angle)*20);
//fire[j].setPosition();

}

for(int i=0;i<=1;i++)
if(sf::Touch::isDown(i))
{
sf::Vector2i touchpo = sf::Touch::getPosition(1);
butt[4].setPosition(touchpo.x,touchpo.y);
sf::Vector2i touchpos = sf::Touch::getPosition(0);
go=false;
butt[3].setPosition(touchpos.x,touchpos.y);

}

if(butt[3].getGlobalBounds().intersects(butt[0].getGlobalBounds()))angle-=3;
if(butt[3].getGlobalBounds().intersects(butt[1].getGlobalBounds()))angle+=3;
if(butt[3].getGlobalBounds().intersects(butt[2].getGlobalBounds())||butt[4].getGlobalBounds().intersects(butt[2].getGlobalBounds()))go=true;

else go=false;
if(butt[4].getGlobalBounds().intersects(butt[0].getGlobalBounds()))angle-=3;
if(butt[4].getGlobalBounds().intersects(butt[1].getGlobalBounds()))angle+=3;

if(go)
{
dxx+=cos(anglee*dd)10;
dyy+=sin(anglee
dd)*10;

dx+=cos(angle*d)0.2;
dy+=sin(angle
d)*0.2;

}
else
{
////سرعة التوقف
dx*=0.99;
dy*=0.99;

}

int max=15;
float sp=sqrt(dxdx+dydy);
if(sp>max)
{
dx*=max/sp;
dy*=max/sp;
}

x+=dx;
y+=dy;

if(x>1100)x=-100;
if(y>2400)y=-100;
if(x<-100)x=1100;
if(y<-100)y=2400;

ship.setPosition(x,y);
ship.setRotation(angle+90);

/////////////
stringstream ss;
ss<< ship.getRotation();
string s;
ss>>s;
sf::Text text(s, font, 50);
text.setPosition(100,5);

////shoing iny thing here draw

for(int i=0;i<fire.size();i++)
{
app.draw(fire[i]);

}
for(int i=0;i<3;i++)
app.draw(butt[i]);
app.draw(text);
app.draw(ship);
app.display();
}
return 0;
}

implement caching in JSP

JSP caching lets you cache tag invocation results within the Java engine. Each can be cached using different cache criteria. JSP caching is defined by following:

  1. Enabling JSP caching: To globally enable JSP caching, set the jspCachingEnabled property to true. The default is false. For Example

asadmin set server-config.web-container.property.jspCachingEnabled="true"
To enable JSP caching for a single web application, follow these steps:

-Extract the META-INF/appserv-tags.tld file from the as-install/glassfish/modules/web-glue.jar file.
-Create a new JAR file (for example, appserv-tags.jar) containing just the META-INF/appserv-tags.tld file previously extracted.
-Bundle this new JAR file in the WEB-INF/lib directory of your web application.

  1. Caching Scope: JSP caching is available in three different scopes: request, session, and application. The default is application. To use a cache in request scope, a web application must specify the com.sun.appserv.web.taglibs.cache.CacheRequestListener in its web.xml deployment descriptor, as follows:
com.sun.appserv.web.taglibs.cache.CacheRequestListener
  1. Cache Tag: The cache tag caches the body between the beginning and ending tags according to the attributes specified. The first time the tag is encountered; the body content is executed and cached. Each subsequent time it is run, the cached content is checked to see if it needs to be refreshed and if so, it is executed again, and the cached data is refreshed. Otherwise, the cached data is served.

  2. Flush tag: Forces the cache to be flushed. If a key is specified, only the entry with that key is flushed. If no key is specified, the entire cache is flushed.

Support Organizations

In the flurry of hackathon I forgot to check to see if organizations were being properly pulled down. Turns out they aren't! Going to need to talk to GitHub in a different way.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.