This file contains 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 | |
class Codepad | |
{ | |
/** | |
* Generates a new id and the file behind | |
* | |
* @return string | |
*/ | |
public function generateNewId () |
This file contains 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
window.Becklyn = (function (Becklyn, window, document) { | |
"use strict"; | |
/** | |
* The settings as set by the initialization | |
* | |
* @type {Object} | |
*/ | |
var settings; |
This file contains 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
module.exports = function(grunt) { | |
grunt.loadNpmTasks("grunt-browserify"); | |
grunt.initConfig({ | |
browserify: { | |
app: { | |
options: { | |
transform: ['browserify-shim'] | |
}, |
This file contains 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 "inc"; | |
.imp1 { | |
@extend %test; | |
} |
This file contains 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
module.exports = function(grunt) { | |
var path = require("path"); | |
grunt.loadNpmTasks("grunt-contrib-sass"); | |
grunt.initConfig({ | |
sass: { | |
bundles: { | |
options: { |
This file contains 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
<?xml version="1.0" encoding="utf-8"?><Error><Code>BlobNotFound</Code><Message>The specified blob does not exist. | |
RequestId:57420d5a-15a4-4784-bd28-256c7d5f82a5 | |
Time:2014-04-09T07:39:59.3686754Z</Message></Error> |
This file contains 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
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
.foo { | |
@at-root { | |
@font-face { | |
font-family: "Ionicons"; | |
src:url("../fonts/ionicons.eot?v=1.4.0"); |
This file contains 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
// Function for returning the user to any 'y' position in a Facebook app/tab. Uses jQuery animate, otherwise gracefully falls-back without it. | |
// Source[1]: http://stackoverflow.com/questions/7193425/how-do-you-animate-fb-canvas-scrollto | |
// Source[2]: https://developers.facebook.com/docs/reference/javascript/FB.Canvas.scrollTo/ | |
function scrollinFacebook (toY, duration) { | |
if (FB.Canvas.getPageInfo) { | |
FB.Canvas.getPageInfo (function (pageInfo) { | |
$({ y: pageInfo.scrollTop }) | |
.animate({ | |
y: toY |
This file contains 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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
@mixin fontface($fontname: "", $fontfile: "", $path: "", $weightnames: "", $weightnos: "", $fontvariant: "") { | |
$totalnofonts: length($weightnames); | |
@if ($totalnofonts > 0) { | |
$path: $path + $fontfile; | |
$i: 0; |
This file contains 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 | |
class Sanitizer | |
{ | |
/** | |
* Returns a url-sanitized string | |
* @static | |
* @param string $string | |
* @return string | |
*/ |
OlderNewer