This file contains hidden or 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
<?php | |
if (!file_exists($file = __DIR__ . '/vendor/autoload.php')) { | |
throw new \Exception('please run "composer require google/apiclient:~2.0" in "' . __DIR__ .'"'); | |
} | |
require_once __DIR__ . '/vendor/autoload.php'; | |
session_start(); | |
$OAUTH2_CLIENT_ID = '751887412551-o95lukoq6blmmlkom33mteojlpnrtbim.apps.googleusercontent.com'; | |
$OAUTH2_CLIENT_SECRET = '9vGd0fvJ3m0_4ePtN4Ms8jNM'; |
This file contains hidden or 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
public class MainActivity extends AppCompatActivity { | |
private InterstitialAd interstitialAd; | |
private ScheduledExecutorService scheduledExecutorService; | |
private Boolean isVisible; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
AdView adView = findViewById(R.id.adView); |
This file contains hidden or 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
<script> | |
document.getSelection().getRangeAt(0).surroundContents(fff); // manipulating text element | |
window.getSelection().anchorNode.parentElement.classList.toggle("w3-red"); // manipulating prent element | |
</script> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> | |
<style> | |
</style> | |
</head> | |
<body> | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="w3.css"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
a:link{ | |
text-decoration: none; | |
} |
This file contains hidden or 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
pNation(); | |
function pNation(){ | |
var pn1 = []; | |
var pn2 = []; | |
var isi = 4; | |
for(i = 1;i<=stl.page.length;i++){ | |
pn1.push(i); | |
if(i%isi == 0){ | |
pn2.push(pn1); | |
pn1 = []; |
This file contains hidden or 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
var gt = document.location.href; | |
var ga = new URL(gt); | |
var gg = ga.searchParams.get("pn"); | |
if(gg != null){ | |
console.log("ya gt deh") | |
} |
This file contains hidden or 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
getDb(function(aa){ | |
var bb = JSON.parse(atob(aa)); | |
var cc = []; | |
for(i in bb.page){ | |
cc.push(bb.page[i].tag); | |
} | |
var dd = Array.from(new Set(cc)); | |
}) |
This file contains hidden or 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
var n = []; | |
var m = []; | |
for(i=1;i<=100;i++){ | |
n.push(i); | |
if(i%10 == 0){ | |
m.push(n); | |
n = []; | |
} | |
} | |
m.push(n); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="crafty-min.js"></script> | |
</head> | |
<body> | |
<div id="game2"></div> | |
<script> | |
Crafty.init(); |