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
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "regexp" | |
| "sort" | |
| "strconv" | |
| "strings" |
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
| package main | |
| import ( | |
| "net/http" | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "os" | |
| ) |
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 | |
| /* | |
| * Bitstorm - A small and fast Bittorrent tracker | |
| * Copyright 2008 Peter Caprioli | |
| * | |
| * This program 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. | |
| * |
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
| IF NOT EXISTS | |
| ( | |
| SELECT * FROM [information_schema].[columns] | |
| WHERE table_name = 'Customer' | |
| AND table_schema = 'dbo' | |
| AND column_name = 'FavoriteColorId' | |
| ) | |
| BEGIN | |
| ALTER TABLE [dbo].[Customer] | |
| ADD FavoriteColorId int |
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
| all: test libtest.so testmodule | |
| libtest.so: libtest.c | |
| $(CC) -Wall -g -fPIC -shared -o $@ $? -lc | |
| test: test_main.c libtest.o | |
| $(CC) -o $@ $? | |
| testmodule: testmodule.c | |
| python setup.py build |
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
| import ctypes | |
| import time | |
| import numpy as np | |
| import example_cython | |
| def mult_sum(a): | |
| b = 0 | |
| for i in range(10000): | |
| b += a * i |
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
| (defun cute-python () | |
| (interactive) | |
| (remove-overlays) | |
| (let ( | |
| (strings '( | |
| (" != " . " ≢ ") | |
| (" in " . " ∈ ") | |
| (" or " . " ∨ ") | |
| (" and " . " ∧ ") | |
| (" is not " . " ¬ ") |
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 marked = require('marked'), | |
| fs = require('fs'), | |
| path = require('path'), | |
| URI = require('URIjs'), | |
| renderer = new marked.Renderer(), | |
| file = fs.readFileSync('./foo.md', 'utf8'); | |
| // Set Marked's rendereer to the custom renderer | |
| // optional `localVideoPath` option will be used to to find fallback videos for `.webm`. Defaults to '' | |
| marked.setOptions({ |
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
| #-*- coding: utf-8 -*- | |
| # Tested on Markdown 2.3.1 | |
| # | |
| # Copyright (c) 2014, Esteban Castro Borsani | |
| # The MIT License (MIT) | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights |
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
| from django.utils.safestring import mark_safe | |
| from markdown import markdown | |
| from pygments import highlight | |
| from pygments.formatters import get_formatter_by_name | |
| from pygments.lexers import get_lexer_by_name | |
| from wagtail.wagtailcore import blocks | |
| class CodeBlock(blocks.StructBlock): |
NewerOlder