Skip to content

Instantly share code, notes, and snippets.

View Srijancse-zz's full-sized avatar
😎
zZZ

Srijan Agarwal Srijancse-zz

😎
zZZ
View GitHub Profile

Keybase proof

I hereby claim:

  • I am srijancse on github.
  • I am srijancse (https://keybase.io/srijancse) on keybase.
  • I have a public key whose fingerprint is 2415 E3F5 FF68 37A4 C5C0 BD9C 4F4C 4016 77AD DE65

To claim this, I am signing this object:

if (edge.node.type == "policy_mobile" && edge.node.lang == "fr-fr") {
await createPage({
path: slug, // required
component: slash(pageTemplate),
layout: edge.node.id,
context: {
id: edge.node.id,
type: edge.node.type,
lang: edge.node.lang
}
@Srijancse-zz
Srijancse-zz / server.py
Last active July 5, 2018 16:16
creates a python webserver, checks if a post data has been recevied at specific time and if not alert the slack group
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import SocketServer
from datetime import datetime, time
from slackclient import SlackClient
test=0
now=datetime.now()
now_time= now.time()
SLACK_TOKEN = ""

Keybase proof

I hereby claim:

  • I am srijancse on github.
  • I am srijancse (https://keybase.io/srijancse) on keybase.
  • I have a public key whose fingerprint is 3328 D72C A2EC 57CC 79FD 2702 2416 141C BCC1 397B

To claim this, I am signing this object:

$("a").on('click', function() {
if ($(this).text() === "Preview") {
$(this).parent().toggleClass("current");
checkCurrent();
}
});
function checkCurrent() {
if ($('div[rel="wikiEditor-ui-view-preview"]').hasClass("current")) {
console.log("You are offline and clicked Preview");
<?php
class OfflineExtensionHooks
{
public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {
$out->addModules( array( 'ext.offlineextension.foo' ) );
$out->addModuleStyles( array( 'ext.offlineextension.foo-indicator','ext.offlineextension.foo-english','ext.offlineextension.foo-theme'));
}
}