Skip to content

Instantly share code, notes, and snippets.

View pongstr's full-sized avatar
:octocat:

pongstr pongstr

:octocat:
View GitHub Profile
@pongstr
pongstr / ios-updates.md
Last active August 29, 2015 13:56
cURL iOS updates
// 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");
#!/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">
@pongstr
pongstr / sample.css
Created December 26, 2014 10:26
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur rutrum, leo sit amet pulvinar pulvinar, nibh arcu semper massa, nec commodo nisl lorem vel ante. Nunc at orci vel purus posuere placerat vitae eu massa. Ut eu elit fringilla nisl pellentesque facilisis in id turpis. Proin quis sem vel nibh tincidunt molestie. In in tellus risus. …
.sample {}

Create Bookmarklet

  1. In Chrome, click Bookmarks->Bookmark Manager
  2. Select the "Bookmarks Tab" folder on the left.
  3. Copy the script below, and paste it to the right panel with other bookmarks