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
| # Return a list of tuples containing string representations of, and references to, OBJECT's methods | |
| import inspect | |
| inspect.getmembers(OBJECT, predicate=inspect.ismethod) |
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
| /* | |
| * | |
| * nbc.c | |
| * | |
| * Modified by DJ Heaney - August 2013 | |
| * Original code (public domain) by Stan Seibert - July 2001 | |
| * | |
| * Legal Terms: | |
| * | |
| * This source file is released into the public domain. It is |
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
| date = new Date().toString().split ' ' | |
| console.log date[0] + ', ' + date[1] + ' ' + date[2] + ' ' + date[3] + ' ' + date[4] + ' '+ '-0600' | |
| # => Tue, Jul 16 2013 11:48:42 -0600 |
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
| static void spawnAboutDialog(GtkWidget *emitter, GtkWidget *aboutDialog); | |
| GtkWidget *help; | |
| GtkWidget *helpmenu; | |
| GtkWidget *aboutButton; | |
| GtkWidget *aboutDialog; | |
| helpmenu = gtk_menu_new(); | |
| help = gtk_menu_item_new_with_mnemonic("_Help"); | |
| aboutDialog = gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, accel_group); |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main() { | |
| printf("%s/.gtktactoe/config.json\n", getenv("HOME")); | |
| } |
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
| /* engine.c */ | |
| int indexToBoard(int index) { | |
| int row, col; | |
| row = index / 3; | |
| col = index % 3; | |
| return board[row][col]; | |
| } |
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
| <style type="text/css"> | |
| body { | |
| background-color: rgb(255, 45, 45); | |
| } | |
| table { | |
| margin-top: 50px; | |
| border-width: 0; | |
| border-style: 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
| require 'sinatra' | |
| require 'rqrcode' | |
| contact = "MECARD:N:Guy Fawkes;ADR:123 Gunpowder Rd, Walworth, England 123456;EMAIL:dumby@gmail.com;URL:http://google.com;;" | |
| get '/' do | |
| @qr = RQRCode::QRCode.new(contact, :size => 10, :level => :l) | |
| erb :index | |
| end |
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
| #!/usr/bin/env phantomjs | |
| // Copyright (C) 2013 - dejay | |
| // | |
| // Air1.js is free software: you can redistribute it and/or modify | |
| // it under the terms of the GNU General Public License as published by | |
| // the Free Software Foundation, either version 3 of the License, or | |
| // (at your option) any later version. | |
| // | |
| // Air1.js is distributed in the hope that it will be useful, |
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
| #$file must have the ".c" extension | |
| gcc -w -E $file -o $output |