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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
import java.util.regex.Pattern | |
def versionMajor = 1 | |
def versionMinor = 0 | |
def versionPatch = 0 | |
buildscript { | |
repositories { | |
mavenCentral() | |
} |
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
class AsyncGetLocationForStoreTask extends AsyncTask<String, Integer, Location> { | |
private ProgressDialog pDialog; | |
private String str; | |
public AsyncGetLocationForStoreTask(String s) { | |
str = s; | |
} | |
@Override |
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
#!/bin/bash | |
while : | |
do | |
clear | |
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
sleep 1 | |
done |
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
Thepathof | |
therighteousmanis | |
besetonallsidesbytheiniq | |
uitiesoftheself ishandth | |
etyrannyofevi lmen.Bl | |
essedishewho,in thenam | |
eofcharityandgoo dwill | |
,shepherdst heweak throughthev alley | |
ofdarkness,forheist rulyhisbrother' skee | |
perandthefinderof lostchildren.AndIwill |
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
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
public class HashTextTest { | |
/** | |
* @param args | |
* @throws NoSuchAlgorithmException | |
*/ | |
public static void main(String[] args) throws NoSuchAlgorithmException { |
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
angular.module("ycf").factory("ycfInstagram", function($q, social, groupVerification, loadingDialog, validationAlert, $ionicPopup) { | |
var insta = {}; | |
insta.msg = "Support my YC Fundraiser!"; | |
insta.post = function(type) { | |
if (type == "marketing") { | |
return insta.market(); | |
} else { | |
return insta.invite(); |
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
function delay(t){ | |
return new Promise(function(resolve){ | |
return setTimeout(resolve, t); | |
}); | |
} | |
function logHi(){ | |
console.log('hi'); | |
} |
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
import androidx.annotation.CheckResult | |
import androidx.annotation.NonNull | |
import androidx.test.espresso.IdlingResource | |
import okhttp3.Dispatcher | |
import okhttp3.OkHttpClient | |
class OkHttpIdlingResource private constructor( | |
private val resourceName: String, private val dispatcher: Dispatcher | |
) : IdlingResource { | |
companion object { |
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
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.Job | |
import kotlinx.coroutines.delay | |
import kotlinx.coroutines.launch | |
/* | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled |
OlderNewer