This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Autogenerated input type of AcceptTopicSuggestion""" | |
input AcceptTopicSuggestionInput { | |
"""The Node ID of the repository.""" | |
repositoryId: ID! | |
"""The name of the suggested topic.""" | |
name: String! | |
"""A unique identifier for the client performing the mutation.""" | |
clientMutationId: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
NDK_ROOT="${1:-${NDK_ROOT}}" | |
if [ ! -d "${WD}/android-cmake" ]; then | |
echo 'Cloning android-cmake' | |
git clone https://github.com/taka-no-me/android-cmake.git | |
fi | |
### ABI setup | |
#ANDROID_ABI=${ANDROID_ABI:-"armeabi-v7a with NEON"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You can place it in the root build.gradle | |
allprojects { | |
tasks.withType(JavaForkOptions) { | |
// Forked processes like GradleWorkerMain for tests won't steal focus! | |
jvmArgs '-Djava.awt.headless=true' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bitmap batmapBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.batman); | |
RoundedBitmapDrawable circularBitmapDrawable = RoundedBitmapDrawableFactory.create(getResources(), batmapBitmap); | |
// option 1 h/t [Chris Banes](https://chris.banes.me/) | |
circularBitmapDrawable.setCornerRadius(batmapBitmap.getWidth()); | |
// option 2 h/t @csorgod in the comments | |
circularBitmapDrawable.setCircular(true); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<ctime> | |
#include<unistd.h> | |
#include<cstdlib> | |
#include<cstdio> | |
#include<cmath> | |
using namespace std; | |
int press_enter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// forked from subimage's modifications of my much messier prior scripts | |
// ( https://gist.github.com/subimage/d952e49c9184d6a7a74f ) | |
// after entering jquery into ur console, enter the code below in ur console | |
// then load a few months of activity && enter leaveFacebook(); into ur console | |
// u can specify parameters like so: leaveFacebook('Unlike'); if u only want to unlike | |
// or leaveFacebook('Unfriend'); if u only want to unfriend | |
// etc... | |
// visit nickbriz.com/facebook for vidz && details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |