Skip to content

Instantly share code, notes, and snippets.

View dstroii's full-sized avatar

Hervé Mischler dstroii

View GitHub Profile
@pocketkk
pocketkk / Swift - Move UIScrollView to Position.swift
Created July 21, 2014 20:47
Swift - Move UIScrollView to Position
func buttonTapped(sender: UIButton!) {
let scroll : UIScrollView? = findScroller(self.view)
let scrollPoint = CGPointMake(0.0, 0.0)
println("Button Tapped")
if scroll {
scroll!.setContentOffset(scrollPoint, animated: true)
}
}
@bomberstudios
bomberstudios / sketch-plugins.md
Last active July 16, 2025 18:21
A list of Sketch plugins hosted at GitHub, in no particular order.
@cletusw
cletusw / polymer-element.sublime-snippet
Last active December 21, 2015 01:19
Here's a Sublime Text snippet for quickly creating polymer-elements. Just type "<polymer" and press TAB to generate the empty element, then tab through the different fields to add a name (which is automatically mirrored to the Polymer() call), attribute default values in the prototype (which are automatically mirrored to the "attributes" attribu…
<snippet>
<content><![CDATA[
<link rel="import" href="../../bower_components/polymer/polymer.html">
<polymer-element name="$1" attributes="${2/:[^\n$]*(\n[ \t]*|$)/ /g}">
<template>
<style>
:host {
display: block;
}