Skip to content

Instantly share code, notes, and snippets.

View rajiff's full-sized avatar
🎯
Focusing

Basavaraj K N rajiff

🎯
Focusing
  • ThriveArch
  • Bangalore, INDIA
View GitHub Profile
@matthanger
matthanger / blti-launch.php
Last active October 24, 2022 07:12
Sample code for Basic LTI Consumer in PHP
<?php
# ------------------------------
# START CONFIGURATION SECTION
#
$launch_url = "https://lti.tools/test/tp.php";
$key = "12345";
$secret = "secret";
$launch_data = array(
@tj
tj / app.js
Created December 17, 2011 23:15
express 3.x cookie session middleware example
var express = require('express')
, cookieSessions = require('./cookie-sessions');
var app = express();
app.use(express.cookieParser('manny is cool'));
app.use(cookieSessions('sid'));
app.get('/', function(req, res){
req.session.count = req.session.count || 0;
@SiriusDely
SiriusDely / push_apns.php
Created May 2, 2012 00:23
Push Notification PHP Script - Apple iOS, Android C2DM, BlackBerry PPG
<?php
// Put your device token here (without spaces):
$deviceToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
// Put your private key's passphrase here:
$passphrase = 'xxxxxxx';
// Put your alert message here:
$message = 'A push notification has been sent!';
<h2>App Academy ExpressJS Screencasts</h2>
<ul class="list-group">
<li><a href="http://vimeo.com/groups/appacademy/videos/88022112">1 - Module Exports</a></li>
<li><a href="http://vimeo.com/groups/appacademy/videos/88022113">2 - HTTP</a></li>
<li><a href="http://vimeo.com/groups/appacademy/videos/88022115">3 - Threads</a></li>
<li><a href="http://vimeo.com/groups/appacademy/videos/88022116">4 - Ruby IO Select</a></li>
<li><a href="http://vimeo.com/groups/appacademy/videos/88022119">5 - Ruby Event Reactor</a></li>
<li><a href="http://vimeo.com/groups/appacademy/videos/88025189">6 - Node Event Reactor</a></li>
<li><a href="http://vimeo.com/groups/appacademy/videos/88135357">7 - Express Routing</a></li>
<li><a href="http://vimeo.com/groups/appacademy/videos/88135358">8 - Express Next</a></li>
@staltz
staltz / introrx.md
Last active November 4, 2024 10:23
The introduction to Reactive Programming you've been missing
# Node-WebKit CheatSheet
# Download: https://github.com/rogerwang/node-webkit#downloads
# Old Versions: https://github.com/rogerwang/node-webkit/wiki/Downloads-of-old-versions
# Wiki: https://github.com/rogerwang/node-webkit/wiki
# How: https://github.com/rogerwang/node-webkit/wiki/How-node.js-is-integrated-with-chromium
# 1. Run your application.
# https://github.com/rogerwang/node-webkit/wiki/How-to-run-apps
@egel
egel / auto-remove-sublime-license-popup
Last active August 14, 2024 12:54
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
@joyrexus
joyrexus / README.md
Last active August 6, 2024 16:07
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")