Skip to content

Instantly share code, notes, and snippets.

View sayak-sarkar's full-sized avatar
🏠
Working from home

Sayak Sarkar sayak-sarkar

🏠
Working from home
View GitHub Profile
@sayak-sarkar
sayak-sarkar / gist:2210590
Created March 26, 2012 23:24
BDD for SilverStripe sample
# features/log-in.feature
Feature: Create a page
As an site owner
I want to access to the CMS to be secure
So that only my team can make content changes
Scenario: Bad login
When I log in with "bad@example.com" and "badpassword"
Then I will see a bad log-in message
And if I visit admin
<!DOCTYPE html><html><head>
<title>My Music - Credits</title>
</head>
<body>
<p></p>
</body></html>
<!DOCTYPE html>
<html lang="en">
<head>
<base href="https://popcorn.webmaker.org/templates/basic/">
<title>Popcorn Maker</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style.css">
@sayak-sarkar
sayak-sarkar / sublime-text-2.sh
Last active April 29, 2021 16:41 — forked from henriquemoody/sublime-text-2.sh
Gist updated to Sublime Text v2.0.2, 64bit
# Adapted from https://gist.github.com/henriquemoody/3288681
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 2
Comment=Edit text files
Exec=/usr/local/sublime-text-2/sublime_text
Icon=/usr/local/sublime-text-2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
@sayak-sarkar
sayak-sarkar / Love Bomb from Mozilla!
Created July 3, 2013 23:22
Mozilla's Love Bomb for me on the completion of my Internship.
<!DOCTYPE html><html><head>
<title>Remix of Sayak: Super Super Mentor!</title>
<style>
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff) format('woff');
}
@font-face {
@sayak-sarkar
sayak-sarkar / Love Bomb from Mentor Team!
Created July 3, 2013 23:25
The original Love Bomb from the Mentor Team!
<!DOCTYPE html><html><head>
<title>Remix of Sayak: Super Super Mentor!</title>
<style>
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff) format('woff');
}
@font-face {
@sayak-sarkar
sayak-sarkar / Enyo Resources
Created July 14, 2013 22:26
List of Online Enyo.js Resources!
Tutorials
==========
Daily JS:-
-----------
* http://dailyjs.com/2012/09/20/enyo-1/
* http://dailyjs.com/2012/10/04/enyo-2/
Is Good Stuff:-
---------------
if (xhr.status == 200) {
var responseTest = xhr.responseText;
var parser = new XMLRPCParser(responseTest);
this.response = parser.toObject();
this.fault = parser.fault;
}
else if(xhr.status == 0) {
this.fault = true;
this.faultMessage = "No Response from the Server";
this.faultCode = 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Sayak Sarkar | Just Another Geek&#039;s Blog</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="http://sayaksarkar.wordpress.com/xmlrpc.php" />
<link rel="alternate" type="application/rss+xml" title="Sayak Sarkar &raquo; Feed" href="http://sayaksarkar.wordpress.com/feed/" />
<link rel="alternate" type="application/rss+xml" title="Sayak Sarkar &raquo; Comments Feed" href="http://sayaksarkar.wordpress.com/comments/feed/" />
1. Work and improve upon the existing Mozilla India Developer Leaderboard.
2. Implement similar leaderboard for other project areas such as Support[based on SUMO stats like queries answered, etc], Webmaker[number of makes created, etc.]
3. Develop and create a Portal for Mozilla India: The idea is that the Mozilla India community has grown by leaps and bounds and as such needs a home portal which would list all Mozillians/Reps from Mozilla India by using APIs from mozillians.org & reps.mozilla.org. A possible point of reference for how it may look might be the ReMo People's page - reps.mozilla.org/people. This portal should be integrated into mozillaindia.org.
Bonus: Allow profile creation for Vouched Mozillians from India. It should use Persona and these profiles should be usable across all Mozilla India properties on the Web such as the Mozilla India Blog.
4. Create a Mozilla India Events portal: It would basically be an aggregator which would aggregate and show various Mozilla India events from various