Skip to content

Instantly share code, notes, and snippets.

@Ezveus
Ezveus / activity_gridlayout_example.xml
Created March 12, 2015 10:52
Android : Exemple d'utilisation du GridLayout (en lib de compatibilité)
<android.support.v7.widget.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
app:orientation="horizontal"
@Ezveus
Ezveus / scopes.txt
Last active August 29, 2015 14:07 — forked from iambibhas/scopes.txt
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@Ezveus
Ezveus / Output
Last active December 14, 2015 10:18
Programme à la con qui dit si l'année est bissextile. En PHP et en Ruby. PS : Il semble que PHP ne gère pas très bien les grands nombres.
Output Ruby :
Enter a year : 4564894532165189416891189189198198189181981189489487846454564545648948979465418944132
4564894532165189416891189189198198189181981189489487846454564545648948979465418944132 is a leap year
Output PHP :
Enter a year : 4564894532165189416891189189198198189181981189489487846454564545648948979465418944132
9223372036854775807 isn't a leap year