Skip to content

Instantly share code, notes, and snippets.

View pongstr's full-sized avatar
:atom:

pongstr pongstr

:atom:
View GitHub Profile
@pongstr
pongstr / ios-updates.md
Last active August 29, 2015 13:56
cURL iOS updates
@pongstr
pongstr / setup-0.1.0.md
Last active January 3, 2016 14:25
Windows Web Development.

Windows Front-end WebDev

Writing up a guide for people in the new office who prefer to work on windows machine but still be able to use the methods the mac guys use.

// Font-Face Mixin
.font-face (@font-family-name, @font-file-path-file-name, @font-weight: normal, @font-style: normal) {
@font-face {
font-family: '@{font-family-name}';
src: ~"url('@{font-file-path-file-name}.eot')";
src: ~"url('@{font-file-path-file-name}.eot?#iefix') format('embedded-opentype')",
~"url('@{font-file-path-file-name}.woff') format('woff')",
~"url('@{font-file-path-file-name}.ttf') format('truetype')"
~"url('@{font-file-path-file-name}.svg#@{font-family-name}') format('svg')";
controllers.controller('MainCtrl', function($scope, $location, Facebook, $rootScope, $http, $location, Upload, Auth, User, Question, Category, Serie, Record, Location, Popup, Process, Card, Question) {
$scope.$on('authLoaded', function() {
$scope.isExpert($scope.main.serieId);
$scope.isMember($scope.main.serieId);
});
$scope.loadAuth = function() {
Auth.load().success(function(data) {
$scope.main.user = data.user;
$scope.$broadcast("authLoaded");
@pongstr
pongstr / ribbon.css
Last active March 22, 2018 11:36
CSS Ribbons
/*!
* CSS3 Ribbons by @pongstr
* http://codepen.io/pongstr/pen/jxhbu
*/
body,html{height:100%;font-family:"Helvetica Neue",Helvetica,sans-serif}*,:after,:before{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.container{margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:768px}}@media (min-width:992px){.container{width:992px}}@media (min-width:1200px){.container{width:1200px}}h1{display:block;clear:both;width:96%;margin:25px auto;font-family:Pacifico,cursive;font-size:64px;font-weight:700;text-align:center;background:-webkit-linear-gradient(#5bc0de,#428bca);-webkit-background-clip:text;-webkit-text-fill-color:transparent}pre{position:relative;margin:15px auto;padding:10px;font-family:Consolas,Menlo,Courier,monsopace;font-size:13px;line-height:1.5;border:1px solid #ddd;background-color:#f4f4f4;border-radius:4px;box-shadow:0 0 5px rgba(51,51,51,.1)inset}@media (min-width:480px){pre{float:left;width:100%}}@media (mi
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
<!doctype html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<title>AngularJS App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
@pongstr
pongstr / menu-x-menu.md
Last active August 29, 2015 14:07
menu-x-menu

Haml

%button.triggr
  - (1..3).each do |i|
    %span.icon-bar

sass with compass

@pongstr
pongstr / ubuntu.md
Last active August 29, 2015 14:07
Ubuntu Workspace
@pongstr
pongstr / index.html
Last active August 29, 2015 14:09
Markdown Syntax using Github Flavoured Markdown. !@#$%^&*()__!@#$%^&*()
<!doctype html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<title>jQuery Plugin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">